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