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 {
6161testing {
6262 @Suppress(" UnstableApiUsage" )
6363 suites {
64- val test by getting() {
64+ val test by getting(JvmTestSuite :: class ) {
6565 dependencies {
6666 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+ }
6873 }
6974 }
7075
@@ -79,10 +84,8 @@ testing {
7984
8085 withType(JvmTestSuite ::class ).configureEach {
8186 useJUnitJupiter(libs.versions.junit5)
82- targets.all {
83- testTask.configure {
84- enabled = project.hasProperty(" runBuildSrcTests" )
85- }
87+ targets.configureEach {
88+ testTask
8689 }
8790 }
8891 }
You can’t perform that action at this time.
0 commit comments