Skip to content

Deprecate legacy Adopt distributions in v5 - #1186

Merged
brunoborges merged 1 commit into
releases/v5from
brunoborges-deprecate-adopt-v5
Jul 31, 2026
Merged

Deprecate legacy Adopt distributions in v5#1186
brunoborges merged 1 commit into
releases/v5from
brunoborges-deprecate-adopt-v5

Conversation

@brunoborges

Copy link
Copy Markdown
Contributor

Summary

  • preserve adopt, adopt-hotspot, and adopt-openj9 runtime support
  • warn that the legacy distributions will be removed in v6 and recommend temurin or semeru
  • document the v5 deprecation and regenerate the bundled action

Testing

  • npm test -- --runInBand
  • npm run format-check
  • npm run lint
  • npm run build

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 0cd196f2-1044-4d33-96bb-8e794a00b03c

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Ready to approve

The deprecation warning is correctly centralized, behavior is preserved, docs are updated consistently, and targeted tests were added for the new warning behavior.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR formalizes the deprecation of legacy AdoptOpenJDK distribution keywords in setup-java v5 while preserving their runtime behavior, and updates user-facing docs plus the bundled dist output accordingly.

Changes:

  • Emit a deprecation warning when adopt, adopt-hotspot, or adopt-openj9 is selected, recommending temurin/semeru.
  • Remove the prior runtime notice from the Adopt installer path so the warning is centralized at distribution selection time.
  • Update documentation/action metadata to mark Adopt keywords as deprecated and regenerate the bundled dist artifact.
File summaries
File Description
src/distributions/distribution-factory.ts Adds centralized deprecation warning for legacy Adopt distribution keywords.
src/distributions/adopt/installer.ts Removes legacy “moved to Temurin” notice to avoid duplicate/late messaging.
README.md Marks legacy Adopt keywords as deprecated and updates guidance text.
docs/advanced-usage.md Updates Adopt section note to reflect v5 deprecation / v6 removal guidance.
dist/setup/index.js Regenerated bundled action output reflecting source changes.
action.yml Updates distribution input description to mention Adopt deprecation/removal timeline.
tests/distributors/distribution-factory.test.ts Adds coverage asserting warning + installer preservation for Adopt keywords.
Review details
  • Files reviewed: 6/7 changed files
  • Comments generated: 0
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@brunoborges
brunoborges merged commit b6effb0 into releases/v5 Jul 31, 2026
407 checks passed
@brunoborges
brunoborges deleted the brunoborges-deprecate-adopt-v5 branch July 31, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants