Skip to content

Commit 5cf1a12

Browse files
author
Oleksandr Dzhychko
committed
build(bulk-model-sync-gradle): set Java versions to 21 for test with Gradle
The tests execute the Gradle build for modelix.core which requires Java 21. Java 21 is required by the build for the Gradle plugin `dev.petuska.npm.publish`.
1 parent 2f1b4ba commit 5cf1a12

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bulk-model-sync-gradle/build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ plugins {
33
`java-gradle-plugin`
44
}
55

6+
tasks.test {
7+
// The tests execute the Gradle build for modelix.core which requires Java 21.
8+
// It requires Java 21 for the Gradle plugin `dev.petuska.npm.publish`.
9+
javaLauncher.set(
10+
javaToolchains.launcherFor {
11+
languageVersion.set(JavaLanguageVersion.of(21))
12+
},
13+
)
14+
}
15+
616
dependencies {
717
implementation(project(":model-client", "jvmRuntimeElements"))
818
implementation(project(":bulk-model-sync-lib"))

0 commit comments

Comments
 (0)