diff --git a/build.gradle b/build.gradle index a5b37f5..7f861dd 100644 --- a/build.gradle +++ b/build.gradle @@ -96,10 +96,7 @@ sourceSets { } // We can't use toolchains because we need --add-export -//java.toolchain.languageVersion = JavaLanguageVersion.of(16) compileJava { - sourceCompatibility = JavaVersion.VERSION_16 - targetCompatibility = JavaVersion.VERSION_16 options.compilerArgs += [ '-Xlint:unchecked', '--add-exports=java.base/sun.security.util=cpw.mods.securejarhandler', @@ -107,8 +104,6 @@ compileJava { } compileTestJava { - sourceCompatibility = JavaVersion.VERSION_16 - targetCompatibility = JavaVersion.VERSION_16 options.compilerArgs += [ '--add-modules=jdk.zipfs', '--add-exports=jdk.zipfs/jdk.nio.zipfs=cpw.mods.securejarhandler'