Skip to content

Commit

Permalink
Remove outdated compile args for J21
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed May 11, 2024
1 parent 162d821 commit 7ccb2c6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,14 @@ 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',
]
}

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'
Expand Down

0 comments on commit 7ccb2c6

Please sign in to comment.