timetable/buildSrc/src/main/kotlin/twomartens.java-preview.gra...

15 lines
321 B
Plaintext

plugins {
id("twomartens.java-base")
}
tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.plusAssign("--enable-preview")
}
tasks.withType<Test>().configureEach {
jvmArgs.plusAssign("--enable-preview")
}
tasks.withType<JavaExec>().configureEach {
jvmArgs.plusAssign("--enable-preview")
}