Skip to content

Commit 6003dd1

Browse files
committed
servlet: move jvmArgs into threadingTest task
1 parent 95d16d8 commit 6003dd1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

servlet/build.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ dependencies {
6969
libraries.protobuf.java
7070
}
7171

72-
tasks.named("test").configure {
72+
tasks.register('threadingTest', Test) {
73+
classpath = sourceSets.threadingTest.runtimeClasspath
74+
testClassesDirs = sourceSets.threadingTest.output.classesDirs
7375
if (JavaVersion.current().isJava9Compatible()) {
7476
jvmArgs += [
7577
// required for Lincheck
@@ -79,11 +81,6 @@ tasks.named("test").configure {
7981
}
8082
}
8183

82-
tasks.register('threadingTest', Test) {
83-
classpath = sourceSets.threadingTest.runtimeClasspath
84-
testClassesDirs = sourceSets.threadingTest.output.classesDirs
85-
}
86-
8784
tasks.named("assemble").configure {
8885
dependsOn tasks.named('compileThreadingTestJava')
8986
}

0 commit comments

Comments
 (0)