From a144749a8d3bcea98b50b813bc29f69caa927463 Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Sun, 24 Sep 2023 11:31:17 +0200 Subject: [PATCH] (jdk21) Add --enable-preview to Java tasks --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index 16b642ee..219120a4 100644 --- a/build.gradle +++ b/build.gradle @@ -16,6 +16,9 @@ subprojects.forEach {it -> it.tasks.withType(JavaCompile).configureEach { options.compilerArgs += ['--enable-preview'] } + it.tasks.withType(JavaExec).configureEach { + jvmArgs += ['--enable-preview'] + } it.tasks.withType(Test).configureEach { jvmArgs += ['--enable-preview'] }