Skip to content

Replace deprecated 'adopt' distribution with 'temurin' in GitHub Actions#1723

Merged
gcatanese merged 1 commit intomainfrom
copilot/update-github-workflow-distribution
Mar 2, 2026
Merged

Replace deprecated 'adopt' distribution with 'temurin' in GitHub Actions#1723
gcatanese merged 1 commit intomainfrom
copilot/update-github-workflow-distribution

Conversation

Copy link
Contributor

Copilot AI commented Feb 9, 2026

The adopt distribution for actions/setup-java is deprecated and will be removed in future versions. Replaced all occurrences with temurin, the recommended successor.

Changes

  • .github/workflows/javaci.yml: Updated both java-check and java-test jobs
  • .github/actions/format/action.yml: Updated JDK setup step
# Before
distribution: 'adopt'

# After
distribution: 'temurin'

All other workflows already use temurin or alternative distributions (zulu for SonarCloud).

Original prompt

This section details on the original issue you should resolve

<issue_title>GitHub workflow: adopt distribution for actions/setup-java is deprecated </issue_title>
<issue_description>high

The adopt distribution for actions/setup-java is deprecated and will be removed in a future version. It is recommended to use temurin instead, which was the value used previously. Using a deprecated value could cause this action to fail in the future.

        distribution: 'temurin'

Originally posted by @gemini-code-assist[bot] in #1721 (comment)
</issue_description>

<agent_instructions>Check all GitHub workflows</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Update deprecated distribution for actions/setup-java Replace deprecated 'adopt' distribution with 'temurin' in GitHub Actions Feb 9, 2026
Copilot AI requested a review from gcatanese February 9, 2026 14:46
@gcatanese gcatanese marked this pull request as ready for review February 9, 2026 14:57
@gcatanese gcatanese requested review from a team as code owners February 9, 2026 14:57
@gcatanese gcatanese enabled auto-merge February 9, 2026 16:06
…flows

Co-authored-by: gcatanese <1771700+gcatanese@users.noreply.github.com>
@gcatanese gcatanese force-pushed the copilot/update-github-workflow-distribution branch from 5715615 to c26ad9d Compare March 2, 2026 11:19
@gcatanese gcatanese added this pull request to the merge queue Mar 2, 2026
Merged via the queue into main with commit 3e9268d Mar 2, 2026
5 checks passed
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.

GitHub workflow: adopt distribution for actions/setup-java is deprecated

3 participants