Skip to content

Commit

Permalink
Rename android artifact name "...-androidRelease" -> "...-android" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
terrakok authored Nov 30, 2023
1 parent 9b9bec4 commit a1be71a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/buildSrc/src/main/kotlin/GradleUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ var MavenPublication.mppArtifactId: String
get() = throw UnsupportedOperationException()
set(value) {
val target = this.name
artifactId = if ("kotlinMultiplatform" in target) value else "$value-$target"
artifactId = when (target) {
"kotlinMultiplatform" -> value
"androidRelease" -> "$value-android"
else -> "$value-$target"
}
}

0 comments on commit a1be71a

Please sign in to comment.