File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
dd-java-agent/instrumentation/junit/junit-5.3/spock-junit-5 Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,9 @@ configurations.matching({ it.name.startsWith('test') }).configureEach({
4040})
4141
4242configurations. matching({ it. name. startsWith(' latestDepTest' ) }). configureEach({
43- it. resolutionStrategy {
44- // Force latest stable Spock version (2.3), as 2.4-M7-groovy-3.0 is still in milestone stage and incompatible with JUnit 5 version
45- force " org.spockframework:spock-core:2.3-groovy-${ spockGroovyVersion} "
43+ it. resolutionStrategy. componentSelection. all { ComponentSelection selection ->
44+ if (selection. candidate. group == ' org.spockframework' && selection. candidate. module == ' spock-core' && ! selection. candidate. version. endsWith(" -groovy-${ spockGroovyVersion} " )) {
45+ selection. reject(' Spock groovy version mismatch' )
46+ }
4647 }
4748})
You can’t perform that action at this time.
0 commit comments