Update publishing config for maven central

This commit is contained in:
MM20
2024-02-06 00:25:16 +01:00
parent 4db091c3ca
commit e5e90763d0
3 changed files with 32 additions and 4 deletions
+15 -2
View File
@@ -3,6 +3,7 @@ plugins {
alias(libs.plugins.kotlin.android)
alias(libs.plugins.dokka)
`maven-publish`
signing
}
android {
@@ -59,13 +60,14 @@ publishing {
register<MavenPublication>("release") {
groupId = "de.mm20.launcher2"
artifactId = "shared"
version = "1.0.0-SNAPSHOT"
version = libs.versions.pluginSdk.get()
artifact(javadocJar)
pom {
name = "Kvaesitso shared library"
description = "Contains shared code between the launcher and its plugin SDK"
url = "https://kvaesitso.mm20.de"
licenses {
license {
name = "The Apache License, Version 2.0"
@@ -75,9 +77,15 @@ publishing {
developers {
developer {
id = "MM2-0"
name = "U.N.Owen"
name = "MM2-0"
url = "https://github.com/MM2-0"
}
}
scm {
connection = "scm:git:git://github.com/MM2-0/Kvaesitso.git"
developerConnection = "scm:git:ssh://github.com:MM2-0/Kvaesitso.git"
url = "https://github.com/MM2-0/Kvaesitso/tree/main/core/shared"
}
}
afterEvaluate {
@@ -96,4 +104,9 @@ publishing {
}
}
}
}
signing {
useGpgCmd()
sign(publishing.publications["release"])
}