Skip to content

Commit 8bc07be

Browse files
committed
build: Fix test task JVM argument application
1 parent 4a9d36b commit 8bc07be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ dependencies {
2222
}
2323

2424
tasks.withType(Test).configureEach {
25-
jvmArgs(["--add-opens=java.base/java.lang=ALL-UNNAMED"]) // for ProjectBuilder tests
25+
if (!name.contains("Java8")) {
26+
jvmArgs(["--add-opens=java.base/java.lang=ALL-UNNAMED"]) // for ProjectBuilder tests
27+
}
2628
}
2729

2830
allprojects {

0 commit comments

Comments
 (0)