--- a/core/build.gradle.kts Mon Apr 28 13:35:53 2025 -0400
+++ b/core/build.gradle.kts Thu May 01 20:41:08 2025 -0400
@@ -26,7 +26,7 @@
kotlin("multiplatform")
id("com.geekorum.build.source-license-checker")
alias(libs.plugins.org.jetbrains.kotlinx.serialization)
- `maven-publish`
+ id("com.geekorum.build.maven-publish")
}
group = "com.geekorum.aboutoss"
@@ -104,27 +104,7 @@
androidTestImplementation(libs.espresso.core)
}
-publishing {
- publications {
- val pomConfiguration: (MavenPom).() -> Unit = {
- name.set("core")
- description.set("A library to retrieve and display opensource licenses in Android applications")
- licenses {
- license {
- name.set("GPL-3.0-or-later")
- url.set("https://www.gnu.org/licenses/gpl-3.0.html")
- distribution.set("repo")
- }
- }
- inceptionYear.set("2023")
- }
+mavenPublishing {
+ coordinates(groupId = group.toString(), name, version.toString())
+}
- register<MavenPublication>("release") {
- afterEvaluate {
- from(components["release"])
- }
- artifactId = "core"
- pom(pomConfiguration)
- }
- }
-}