Skip to content

Commit 8c8b295

Browse files
committed
java 17 workaround
1 parent a49a191 commit 8c8b295

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

LabApiUtilities/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,17 @@ afterEvaluate {
7979
// above in the plugins block.
8080
compileJava.dependsOn generateBuildConfig, generateTestBuildConfig
8181
}
82+
tasks.withType(JavaCompile) {
83+
options.compilerArgs += [
84+
'--add-opens', 'jdk.crypto.mscapi/sun.security.mscapi=ALL-UNNAMED'
85+
]
86+
}
8287

88+
tasks.withType(Test) {
89+
jvmArgs += [
90+
'--add-opens', 'jdk.crypto.mscapi/sun.security.mscapi=ALL-UNNAMED'
91+
]
92+
}
8393
jar {
8494
manifest {
8595
attributes('Implementation-Title': project.name,

0 commit comments

Comments
 (0)