Skip to content

Commit

Permalink
Fix jvm creation for java 8 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
derklaro committed Sep 29, 2021
1 parent 870e614 commit 9a61a33
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions auto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ dependencies {

test {
dependsOn ':shadowJar'
doFirst {
jvmArgs = [
'--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED'
]
// for testing with the google test compile lib
if (JavaVersion.current().isJava9Compatible()) {
doFirst {
jvmArgs = [
'--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED'
]
}
}
}

0 comments on commit 9a61a33

Please sign in to comment.