Skip to content

Commit e817284

Browse files
committed
Revert "Remove pom metadata warning suppressions"
I'm wrong, the warnings also show on publishing to MavenLocal. This reverts commit 6135ff4.
1 parent 6135ff4 commit e817284

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ configurations.configureEach {
8585
}
8686
}
8787

88+
publishing.publications.withType<MavenPublication>().configureEach {
89+
// We don't care about capabilities being unmappable to Maven.
90+
suppressPomMetadataWarningsFor(API_ELEMENTS_CONFIGURATION_NAME)
91+
suppressPomMetadataWarningsFor(RUNTIME_ELEMENTS_CONFIGURATION_NAME)
92+
suppressPomMetadataWarningsFor(JAVADOC_ELEMENTS_CONFIGURATION_NAME)
93+
suppressPomMetadataWarningsFor(SOURCES_ELEMENTS_CONFIGURATION_NAME)
94+
}
95+
8896
dependencies {
8997
compileOnly(libs.kotlin.kmp)
9098
implementation(libs.apache.ant)

0 commit comments

Comments
 (0)