From fdfefaf07b714eed1f927d563fabb6ce44226a6e Mon Sep 17 00:00:00 2001 From: Oleksandr Dzhychko Date: Thu, 2 Jan 2025 12:52:29 +0100 Subject: [PATCH] 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`. --- bulk-model-sync-gradle/build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bulk-model-sync-gradle/build.gradle.kts b/bulk-model-sync-gradle/build.gradle.kts index 72a08f4cfc..69c9249f11 100644 --- a/bulk-model-sync-gradle/build.gradle.kts +++ b/bulk-model-sync-gradle/build.gradle.kts @@ -3,6 +3,14 @@ plugins { `java-gradle-plugin` } +tasks.test { + javaLauncher.set( + javaToolchains.launcherFor { + languageVersion.set(JavaLanguageVersion.of(21)) + }, + ) +} + dependencies { implementation(project(":model-client", "jvmRuntimeElements")) implementation(project(":bulk-model-sync-lib"))