(jdk21) Add --enable-preview to Java tasks
This commit is contained in:
parent
1bd146fb8e
commit
a144749a8d
@ -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']
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user