@@ -39,7 +39,7 @@ plugins {
3939
4040 id " com.github.spotbugs" version ' 6.4.4' apply false
4141 id ' org.scoverage' version ' 8.1' apply false
42- id ' com.gradleup.shadow' version ' 8.3.9 ' apply false
42+ id ' com.gradleup.shadow' version ' 9.2.2 ' apply false
4343 id ' com.diffplug.spotless' version " 8.0.0"
4444}
4545
@@ -713,6 +713,17 @@ subprojects {
713713 exclude ' junit-platform.properties'
714714 }
715715
716+ configurations {
717+ consumableTestArtifacts {
718+ canBeConsumed = true
719+ canBeResolved = false
720+ }
721+ }
722+
723+ artifacts {
724+ consumableTestArtifacts testJar
725+ }
726+
716727 task testSrcJar(type : Jar , dependsOn : testJar) {
717728 archiveClassifier = ' test-sources'
718729 from " $rootDir /LICENSE"
@@ -3399,7 +3410,7 @@ project(':jmh-benchmarks') {
33993410 implementation project(' :raft' )
34003411 implementation project(' :clients' )
34013412 implementation project(' :coordinator-common' )
3402- implementation project(' :coordinator-common' ) . sourceSets . test . output
3413+ implementation project(path : ' :coordinator-common' , configuration : ' consumableTestArtifacts ' )
34033414 implementation project(' :group-coordinator' )
34043415 implementation project(' :group-coordinator:group-coordinator-api' )
34053416 implementation project(' :metadata' )
@@ -3410,10 +3421,10 @@ project(':jmh-benchmarks') {
34103421 implementation project(' :connect:api' )
34113422 implementation project(' :connect:transforms' )
34123423 implementation project(' :connect:json' )
3413- implementation project(' :clients' ) . sourceSets . test . output
3414- implementation project(' :core' ) . sourceSets . test . output
3415- implementation project(' :server-common' ) . sourceSets . test . output
3416- implementation project(' :metadata' ) . sourceSets . test . output
3424+ implementation project(path : ' :clients' , configuration : ' consumableTestArtifacts ' )
3425+ implementation project(path : ' :core' , configuration : ' consumableTestArtifacts ' )
3426+ implementation project(path : ' :server-common' , configuration : ' consumableTestArtifacts ' )
3427+ implementation project(path : ' :metadata' , configuration : ' consumableTestArtifacts ' )
34173428
34183429 implementation libs. jmhCore
34193430 annotationProcessor libs. jmhGeneratorAnnProcess
0 commit comments