Skip to content

Commit 2ea3080

Browse files
committed
Use new DSL to opt-out of shadowRuntimeElements publishing
1 parent 809a30d commit 2ea3080

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gradle/plugins/common/src/main/kotlin/junitbuild.shadow-conventions.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ configurations {
2424
}
2525
}
2626

27-
val javaComponent = components["java"] as AdhocComponentWithVariants
28-
javaComponent.withVariantsFromConfiguration(configurations.shadowRuntimeElements.get()) { skip() }
27+
shadow {
28+
addShadowVariantIntoJavaComponent = false
29+
}
2930

3031
tasks {
3132
javadoc {

0 commit comments

Comments
 (0)