Skip to content

Commit

Permalink
use javaLangVersion for toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Dec 21, 2024
1 parent d1f4621 commit 18f0339
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ allprojects {

java {
toolchain {
languageVersion = JavaLanguageVersion.of(19)
languageVersion = JavaLanguageVersion.of(javaLangVersion)
}
}

Expand All @@ -75,8 +75,8 @@ allprojects {
}

tasks.withType(GroovyCompile).configureEach {
sourceCompatibility = javaLangVersion
targetCompatibility = javaLangVersion
sourceCompatibility = jdkVersion
targetCompatibility = jdkVersion
}

idea {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ repositories {

ext {
jdkVersion = '11'
javaLanguageVersion = JavaLanguageVersion.of(jdkVersion)
javaLangVersion = 19
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(19) // from nf-schema
languageVersion = JavaLanguageVersion.of(javaLangVersion) // from nf-schema
}
}

Expand All @@ -28,8 +28,8 @@ compileJava {
}

tasks.withType(GroovyCompile) {
sourceCompatibility = javaLanguageVersion
targetCompatibility = javaLanguageVersion
sourceCompatibility = jdkVersion
targetCompatibility = jdkVersion
}

tasks.withType(Test) {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nextflowVersion = 23.10.0
groovyVersion = 3.0.19
jdkVersion = 11
javaLangVersion = 11
javaLangVersion = 19
6 changes: 3 additions & 3 deletions plugins/nf-quilt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ group = 'io.nextflow'
// THE VERSION FOR PLUGINS IS DEFINED IN THE `/resources/META-INF/MANIFEST.NF` file
java {
toolchain {
languageVersion = JavaLanguageVersion.of(19)
languageVersion = JavaLanguageVersion.of(javaLangVersion)
}
}

Expand All @@ -36,8 +36,8 @@ compileJava {
}

tasks.withType(GroovyCompile) {
sourceCompatibility = javaLanguageVersion
targetCompatibility = javaLanguageVersion
sourceCompatibility = jdkVersion
targetCompatibility = jdkVersion
}

idea {
Expand Down

0 comments on commit 18f0339

Please sign in to comment.