Skip to content

Upgrade to Java 21 and modernize build toolchain - #2

Merged
arakelian merged 1 commit into
mainfrom
arakelian/java-21
Feb 24, 2026
Merged

arakelian merged 1 commit into
mainfrom
arakelian/java-21

Conversation

@arakelian

Copy link
Copy Markdown
Owner

Summary

  • Upgrade to Java 21 for sourceCompatibility/targetCompatibility in core.gradle
  • Upgrade Gradle wrapper from 8.12.1 to 9.3.1 with compatibility fixes (removed deprecated org.inferred.processors plugin, added junit-platform-launcher)
  • Upgrade key dependencies: Jackson 2.21.1, error_prone 2.47.0, Log4j 2.25.3, junit-jupiter 5.14.3, more-commons 5.1.0 with test-fixtures classifier
  • Modernize CI: GitHub Actions using Java 21, checkout v4, setup-java v4 with corretto distribution, gradle/actions/setup-gradle v4
  • Add comprehensive javadoc to all 13 Java source files and disable StatementSwitchToExpressionSwitch errorprone warning

Test Plan

  • ✅ Full build with ./gradlew clean build passes with all tests green
  • ✅ No compilation errors with Java 21 and Gradle 9.3.1
  • ✅ All dependencies resolved correctly

🤖 Generated with Claude Code

- Upgrade to Java 21 for sourceCompatibility/targetCompatibility
- Upgrade Gradle to 9.3.1 with updated wrapper
- Upgrade dependencies: Jackson 2.21.1, error_prone 2.47.0, Log4j 2.25.3, junit-jupiter 5.14.3, more-commons 5.1.0
- Remove deprecated org.inferred.processors plugin, use annotationProcessor configuration
- Add junit-platform-launcher to testRuntimeOnly (required by Gradle 9)
- Modernize GitHub Actions: Java 21, checkout v4, setup-java v4, corretto distribution, gradle/actions/setup-gradle v4
- Add comprehensive javadoc to all Java classes and public methods
- Disable StatementSwitchToExpressionSwitch errorprone warning

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@arakelian
arakelian merged commit f0c4340 into main Feb 24, 2026
1 check 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.

1 participant