Skip to content

build(java): align toolchain and runtime to Java 25 (bytecode 17)#121

Open
cristianrcv wants to merge 3 commits into
masterfrom
feat/NOTASK-align-java-25
Open

build(java): align toolchain and runtime to Java 25 (bytecode 17)#121
cristianrcv wants to merge 3 commits into
masterfrom
feat/NOTASK-align-java-25

Conversation

@cristianrcv

Copy link
Copy Markdown
Contributor

Summary

Aligns wave-cli to the proposed org-wide Java 25 standard (implements https://github.com/seqeralabs/adr/pull/48). Adopts Java 25 as the build toolchain and runtime while keeping the language level and bytecode target at Java 17, so produced artifacts remain Java 17 compatible.

What changed

  • app/build.gradle: Gradle toolchain JavaLanguageVersion.of(21) -> of(25) (main java block and the GraalVM nativeCompile javaLauncher). sourceCompatibility/targetCompatibility remain 17.
  • .github/workflows/build.yml: java-version '21' -> '25' in both setup-graalvm steps and the JReleaser setup-java step.
  • .github/workflows/security-submit-dependecy-graph.yml: setup-graalvm java-version 21 -> 25.

GraalVM native-image configuration and build args are unchanged.

Why

Follows the proposed org-wide standard in the Java 25 ADR (seqeralabs/adr#48), which supersedes the 2024-12-03 Java 17/21 ADR. Standardizing the toolchain/runtime on Java 25 across repos while keeping bytecode at 17 preserves runtime compatibility.

How to verify

  • ./gradlew assemble and ./gradlew check build/test on the Java 25 toolchain.
  • Compiled classes still target bytecode 17: javap -v on a compiled class reports major version 61.
  • CI build.yml and security-submit-dependecy-graph.yml provision Java 25 via setup-graalvm/setup-java.
  • GraalVM native build (./gradlew app:nativeCompile) runs on the Java 25 launcher.

🤖 Generated with Claude Code

cristianrcv and others added 3 commits July 8, 2026 14:58
Adopt Java 25 as the build toolchain and runtime (Gradle toolchain and
CI workflows) while keeping the language level and bytecode target at
Java 17.

Follows the proposed org-wide standard in the Java 25 ADR
(seqeralabs/adr#48), which supersedes the 2024-12-03 Java 17/21 ADR.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Cristian Ramon-Cortes <cristian.ramon-cortes@seqera.io>
Switch the CI setup-java JDK distribution from Temurin to Amazon
Corretto, following the Java 25 ADR (seqeralabs/adr#48), which
specifies Amazon Corretto as the preferred distribution for Linux.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Cristian Ramon-Cortes <cristian.ramon-cortes@seqera.io>
The Groovy 4.0.24 compiler cannot process Java 25 class files (fails with
"Unsupported class file major version 69") when compiling tests on the
Java 25 toolchain. Bump to 4.0.31, which supports JDK 25, matching the
version used by the nextflow project.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Cristian Ramon-Cortes <cristian.ramon-cortes@seqera.io>
@cristianrcv cristianrcv requested a review from pditommaso July 8, 2026 13:49
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