From 2731c799e31d19a801142cd99460da45ae2e368f Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sat, 15 Apr 2023 19:33:07 +0200 Subject: chore(deps): downgrade to Java 17 Java 19 is out of support, but Gradle current does not run on Java 20: https://github.com/gradle/gradle/issues/23488 To avoid the complexity of running the build tool on a different JDK than the application, we temporarily remove code that depends on experimental Java 19 or Java 20 features. Revert once the build can run on Java 20. --- subprojects/language-web/build.gradle.kts | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'subprojects') diff --git a/subprojects/language-web/build.gradle.kts b/subprojects/language-web/build.gradle.kts index e1d250ec..d398e002 100644 --- a/subprojects/language-web/build.gradle.kts +++ b/subprojects/language-web/build.gradle.kts @@ -29,13 +29,6 @@ dependencies { application { mainClass.set("tools.refinery.language.web.ServerLauncher") - // Enable JDK 19 preview features for virtual thread support. - applicationDefaultJvmArgs += "--enable-preview" -} - -// Enable JDK 19 preview features for virtual thread support. -fun enablePreview(task: JavaForkOptions) { - task.jvmArgs("--enable-preview") } tasks { @@ -47,16 +40,6 @@ tasks { } } - withType(JavaCompile::class) { - options.release.set(19) - // Enable JDK 19 preview features for virtual thread support. - options.compilerArgs.plusAssign("--enable-preview") - } - - withType(Test::class) { - enablePreview(this) - } - jar { dependsOn(webapp) from(webapp) { @@ -82,7 +65,6 @@ tasks { dependsOn(mainRuntimeClasspath) classpath(mainRuntimeClasspath) mainClass.set(application.mainClass) - enablePreview(this) standardInput = System.`in` val baseResource = webapp.incoming.artifacts.artifactFiles.first() environment("BASE_RESOURCE", baseResource) -- cgit v1.2.3-54-g00ecf