Last active
March 3, 2024 18:34
-
-
Save Tweener/07e0cc1d541715a0cf5a350320ca9940 to your computer and use it in GitHub Desktop.
Gradle configuration for publishing a Kotlin Multiplatform BoM on Maven Central
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id("io.github.gradlebom.generator-plugin").version("1.0.0.Final") | |
id("signing") | |
} | |
group = "io.github.tweener" // Change here | |
version = "1.0.0" // Change here | |
publishing { | |
publications { | |
create<MavenPublication>("Bom") { | |
artifactId = "kmp-bom" | |
pom { | |
name.set("My BoM SDK") // Change here | |
description.set("Bill of Materials (BoM) for my Kotlin Multiplatform libraries") // Change here | |
url.set("https://github.com/Tweener/kmp-bom") // Change here | |
licenses { | |
license { | |
name.set("The Apache License, Version 2.0") // Change here, if needed | |
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") // Change here, if needed | |
} | |
} | |
issueManagement { | |
system.set("GitHub Issues") | |
url.set("https://github.com/Tweener/kmp-bom/issues") // Change here | |
} | |
developers { | |
developer { | |
id.set("Tweener") // Change here | |
name.set("Vivien Mahé") // Change here | |
email.set("vivien@tweener-labs.com") // Change here | |
} | |
} | |
scm { | |
connection.set("scm:git:git://github.com:Tweener/kmp-bom.git") // Change here | |
developerConnection.set("scm:git:ssh://github.com:Tweener/kmp-bom.git")// Change here | |
url.set("https://github.com/Tweener/kmp-bom") // Change here | |
} | |
} | |
} | |
} | |
} | |
signing { | |
if (project.hasProperty("signing.gnupg.keyName")) { | |
println("Signing lib...") | |
useGpgCmd() | |
sign(publishing.publications) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment