Skip to content

Commit 2c86dfa

Browse files
committed
Avoid publishing Gradle Module Metadata for shadowRuntimeElements
1 parent 4b27910 commit 2c86dfa

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
@@ -44,6 +44,9 @@ idea {
4444
}
4545
}
4646

47+
val javaComponent = components["java"] as AdhocComponentWithVariants
48+
javaComponent.withVariantsFromConfiguration(configurations.shadowRuntimeElements.get()) { skip() }
49+
4750
tasks {
4851
javadoc {
4952
classpath += shadowedClasspath.get()

0 commit comments

Comments
 (0)