(jdk21) Add --enable-preview to Java tasks

This commit is contained in:
Viktor Lofgren 2023-09-24 11:31:17 +02:00
parent 1bd146fb8e
commit a144749a8d

View File

@ -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']
}