BAU: Upgrade Java to 25#8338
Open
alhcomer wants to merge 14 commits into
Open
Conversation
- project.buildDir is removed in Gradle 9 - Replace all usages with layout.buildDirectory across the root build.gradle and pact subproject build files See: https://docs.gradle.org/9.5.0/userguide/upgrading_version_8.html#project_builddir
ab1c239 to
b40cfbb
Compare
- Project#exec is removed in Gradle 9 - Inject ExecOperations via @Inject into the Terraform task class and use it for all exec calls See: https://docs.gradle.org/9.5.0/userguide/upgrading_version_8.html#deprecated_project_exec
- VersionNumber and lenientConfiguration are removed in Gradle 9 - Use artifactView with lenient mode and a simple version comparator instead See: https://docs.gradle.org/9.5.0/userguide/upgrading_version_8.html#org_gradle_util_reports_deprecations_8 See: https://docs.gradle.org/9.5.0/userguide/upgrading_version_8.html#deprecate_legacy_configuration_get_files
- SpotBugs: 6.4.8 → 6.5.0 - docker-compose: 0.17.12 → 0.17.21 - Pact: 4.6.18 → 4.7.0 (with library 4.6.20 → 4.7.0) - Add testClassesDirs/classpath to custom Test tasks for Gradle 9 See: https://docs.gradle.org/9.5.0/userguide/upgrading_version_8.html#relying_on_conventions_for_custom_test_tasks
- Upgrade from Gradle 8.14.3 to 9.5.0 - Add jackson-core buildscript constraint for GHSA-72hv-8253-57qq - All deprecated API usages fixed in prior commits See: https://docs.gradle.org/9.5.0/userguide/upgrading_version_8.html
- Add foojay-resolver-convention plugin for toolchain provisioning - Configure Java 25 toolchain in allprojects block - Remove per-subproject sourceCompatibility/targetCompatibility - Gradle will auto-provision Java 25 JDK when needed See: https://docs.gradle.org/9.5.0/userguide/toolchains.html See: https://github.com/gradle/foojay-toolchains
- new URL(String) is deprecated for removal in Java 25 - Migrate to URI.create(s).toURL() across source and test files See: https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/net/URL.html
- google-java-format 1.29+ requires Java 21+ to run - Upgrade to 1.35.0 for Java 25 AST support See: https://github.com/google/google-java-format/releases/tag/v1.35.0
- Update Lambda runtime from java17 to java25 in Terraform and CloudFormation/SAM templates - Update Docker images to Corretto 25 - Bump AWS provider to >= 5.82.0 for java25 runtime support - Delete .terraform.lock.hcl files — they will be regenerated by the pre-commit hook (Update terraform provider locks) See: https://aws.amazon.com/blogs/compute/aws-lambda-now-supports-java-25/ See: https://docs.aws.amazon.com/lambda/latest/dg/lambda-java.html
- Update java-version in GitHub Actions workflows to 25 See: https://github.com/actions/setup-java
- ExecutorService implements AutoCloseable since Java 19 - Replaces manual shutdownNow() with automatic close() - Resolves SonarCloud S2095 blocker See: https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/concurrent/ExecutorService.html
- Upgrade from 0.37.0 to 0.47.0 for java25 runtime support See: https://github.com/terraform-linters/tflint-ruleset-aws/releases
- Updated to reflect AWS provider >= 5.82.0 constraint
- Replace unused exception variables with _ (unnamed pattern, available since Java 22) - Resolves SonarCloud S7467 across 89 files See: https://openjdk.org/jeps/456
e6c18f8 to
6d03ff8
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


What
new URL(String)withURI.create(s).toURL()Note: depends on #8337 (Gradle 9.5.0 upgrade) being merged first. This branch will be rebased onto main after that merge.
How to review