File tree Expand file tree Collapse file tree 5 files changed +5
-28
lines changed Expand file tree Collapse file tree 5 files changed +5
-28
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ dependencies {
25
25
// we'll hold the core lib to a high standard
26
26
spotbugs { reportLevel = ' low' } // low|medium|high (low = sensitive to even minor mistakes)
27
27
28
- test {
29
- useJUnitPlatform()
28
+ apply from : rootProject . file( ' gradle/special-tests.gradle ' )
29
+ tasks . named( ' test ' ) {
30
30
if (JavaVersion . current(). isCompatibleWith(JavaVersion . VERSION_16 )) {
31
31
// needed for EclipseCdtFormatterStepTest
32
32
jvmArgs ' --add-opens=java.base/java.lang=ALL-UNNAMED'
Original file line number Diff line number Diff line change @@ -112,10 +112,7 @@ dependencies {
112
112
// we'll hold the core lib to a high standard
113
113
spotbugs { reportLevel = ' low' } // low|medium|high (low = sensitive to even minor mistakes)
114
114
115
- tasks. withType(Test ). configureEach {
116
- useJUnitPlatform()
117
- }
118
-
115
+ apply from : rootProject. file(' gradle/special-tests.gradle' )
119
116
jar {
120
117
for (glue in NEEDS_GLUE ) {
121
118
from sourceSets. getByName(glue). output. classesDirs
Original file line number Diff line number Diff line change @@ -27,13 +27,11 @@ dependencies {
27
27
testImplementation " com.diffplug.durian:durian-testlib:${ VER_DURIAN} "
28
28
}
29
29
30
- test {
31
- useJUnitPlatform()
30
+ apply from : rootProject . file( ' gradle/special-tests.gradle ' )
31
+ tasks . named( ' test ' ) {
32
32
testLogging. showStandardStreams = true
33
33
}
34
34
35
- apply from : rootProject. file(' gradle/special-tests.gradle' )
36
-
37
35
// ////////////////////////
38
36
// GRADLE PLUGIN PORTAL //
39
37
// ////////////////////////
Original file line number Diff line number Diff line change @@ -67,9 +67,7 @@ dependencies {
67
67
}
68
68
69
69
apply from : rootProject. file(' gradle/special-tests.gradle' )
70
-
71
70
tasks. withType(Test ). configureEach {
72
- useJUnitPlatform()
73
71
systemProperty ' spotlessMavenPluginVersion' , project. version
74
72
dependsOn ' publishToMavenLocal'
75
73
dependsOn ' :lib:publishToMavenLocal'
Original file line number Diff line number Diff line change @@ -21,22 +21,6 @@ dependencies {
21
21
// we'll hold the testlib to a low standard (prize brevity)
22
22
spotbugs { reportLevel = ' high' } // low|medium|high (low = sensitive to even minor mistakes)
23
23
24
- test {
25
- useJUnitPlatform()
26
- if (JavaVersion . current(). isCompatibleWith(JavaVersion . VERSION_16 )) {
27
- // for GJF https://github.com/diffplug/spotless/issues/834
28
- def args = [
29
- ' --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED' ,
30
- ' --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED' ,
31
- ' --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED' ,
32
- ' --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED' ,
33
- ' --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED' ,
34
- ' --add-opens=java.base/java.lang=ALL-UNNAMED'
35
- ]
36
- jvmArgs args
37
- }
38
- }
39
-
40
24
apply from : rootProject. file(' gradle/special-tests.gradle' )
41
25
42
26
javadoc {
You can’t perform that action at this time.
0 commit comments