Skip to content

Commit 3d61b7a

Browse files
committed
Avoid publishing Gradle Module Metadata for shadowRuntimeElements
1 parent b14ea15 commit 3d61b7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

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

27+
val javaComponent = components["java"] as AdhocComponentWithVariants
28+
javaComponent.withVariantsFromConfiguration(configurations.shadowRuntimeElements.get()) { skip() }
29+
2730
tasks {
2831
javadoc {
2932
classpath += shadowedClasspath.get()

0 commit comments

Comments
 (0)