File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,15 @@ tasks.compileKotlin {
61
61
testing {
62
62
@Suppress(" UnstableApiUsage" )
63
63
suites {
64
- val test by getting() {
64
+ val test by getting(JvmTestSuite :: class ) {
65
65
dependencies {
66
66
implementation(libs.spock.core)
67
- implementation(" org.codehaus.groovy" , " groovy-all" , " 3.0.24" )
67
+ implementation(" org.codehaus.groovy:groovy-all:3.0.24" )
68
+ }
69
+ targets.configureEach {
70
+ testTask.configure {
71
+ enabled = project.hasProperty(" runBuildSrcTests" )
72
+ }
68
73
}
69
74
}
70
75
@@ -79,10 +84,8 @@ testing {
79
84
80
85
withType(JvmTestSuite ::class ).configureEach {
81
86
useJUnitJupiter(libs.versions.junit5)
82
- targets.all {
83
- testTask.configure {
84
- enabled = project.hasProperty(" runBuildSrcTests" )
85
- }
87
+ targets.configureEach {
88
+ testTask
86
89
}
87
90
}
88
91
}
You can’t perform that action at this time.
0 commit comments