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 1 year 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> {
publications {
all {
this as MavenPublication
val publication = this as MavenPublication
this.groupId = groupId
mppArtifactId = artifactId
//work around to fix an android publication artifact ID
//https://youtrack.jetbrains.com/issue/KT-53520
afterEvaluate {
publication.groupId = groupId
publication.mppArtifactId = artifactId
}
pom {
this.name.set(name)

Loading…
Cancel
Save