Browse Source

Move configuration of an artifact ID to an afterEvaluate phase. (#3995)

More info: https://youtrack.jetbrains.com/issue/KT-53520
pull/3996/head
Konstantin 12 months ago committed by GitHub
parent
commit
9b9bec483f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      components/buildSrc/src/main/kotlin/CommonMavenProperties.kt

10
components/buildSrc/src/main/kotlin/CommonMavenProperties.kt

@ -11,10 +11,14 @@ fun Project.configureMavenPublication(
extensions.configure<PublishingExtension> { extensions.configure<PublishingExtension> {
publications { publications {
all { all {
this as MavenPublication val publication = this as MavenPublication
this.groupId = groupId //work around to fix an android publication artifact ID
mppArtifactId = artifactId //https://youtrack.jetbrains.com/issue/KT-53520
afterEvaluate {
publication.groupId = groupId
publication.mppArtifactId = artifactId
}
pom { pom {
this.name.set(name) this.name.set(name)

Loading…
Cancel
Save