Skip to content

Conversation

@lukaszgyg
Copy link

Summary

This PR migrates the repository to use .sdkmanrc as the single source of truth for Java version in CI workflows, following the migration guide.

Changes

  • Created .sdkmanrc file with java=21.0.5-tem
  • Updated actions/setup-java to v5.1.0 in all workflow files:
    • .github/workflows/check.yml
    • .github/workflows/publish.yml
    • .github/workflows/repository-maintenance.yml
  • Changed java-version: 21 parameter to java-version-file: .sdkmanrc in all workflows

Benefits

  • Single source of truth for Java version across CI and local development
  • Developers using SDKMAN! will automatically use the same Java version as CI
  • Easier to maintain and update Java version in the future

Testing

  • CI workflows will validate the changes automatically
  • The .sdkmanrc file specifies Java 21.0.5 (Temurin distribution), matching the previous configuration

References

Follows: agent-migrations/2026-01-sdkmanrc-ci-java-version-technical-guide.md

- Created .sdkmanrc file
- Updated setup-java action to v5.1.0
- Changed java-version parameter to java-version-file: .sdkmanrc

Follows: agent-migrations/2026-01-sdkmanrc-ci-java-version-technical-guide.md

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@lukaszgyg lukaszgyg requested a review from a team as a code owner January 24, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants