From 21aebfdf97453a5b602770f28693c7c258c2f6af Mon Sep 17 00:00:00 2001 From: Michael Ernst Date: Sun, 17 Mar 2024 21:20:13 -0700 Subject: [PATCH] Move block --- build.gradle | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index a4a7686..45c4b46 100644 --- a/build.gradle +++ b/build.gradle @@ -35,6 +35,12 @@ application { mainClass = 'org.plumelib.javadoc.RequireJavadoc' } +compileJava { + options.compilerArgs += '--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED' + options.compilerArgs += '--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED' + options.compilerArgs += '--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED' +} + sourceCompatibility = 11 targetCompatibility = 11 @@ -80,12 +86,6 @@ tasks.withType(JavaCompile).configureEach { } } -compileJava { - options.compilerArgs += '--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED' - options.compilerArgs += '--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED' - options.compilerArgs += '--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED' -} - /// Checker Framework pluggable type-checking apply plugin: 'org.checkerframework'