Skip to content

Commit ce3c7da

Browse files
committed
Remove unused Jvm args
1 parent a92c7b0 commit ce3c7da

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/build.gradle

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,10 @@ spotbugs { reportLevel = 'low' } // low|medium|high (low = sensitive to even min
119119

120120
apply from: rootProject.file('gradle/special-tests.gradle')
121121
tasks.withType(Test).configureEach {
122-
def args = []
123122
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_16)) {
124123
// https://docs.gradle.org/7.5/userguide/upgrading_version_7.html#removes_implicit_add_opens_for_test_workers
125-
args += [
126-
"--add-opens=java.base/java.lang=ALL-UNNAMED",
127-
"--add-opens=java.base/java.util=ALL-UNNAMED",
128-
]
124+
jvmArgs "--add-opens=java.base/java.lang=ALL-UNNAMED"
129125
}
130-
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_18)) {
131-
// https://openjdk.org/jeps/411
132-
args += "-Djava.security.manager=allow"
133-
}
134-
jvmArgs(args)
135126
}
136127

137128
jar {

0 commit comments

Comments
 (0)