Update publishing config for maven central

This commit is contained in:
MM20 2024-02-06 00:25:16 +01:00
parent 4db091c3ca
commit e5e90763d0
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
3 changed files with 32 additions and 4 deletions

View File

@ -3,6 +3,7 @@ plugins {
alias(libs.plugins.kotlin.android) alias(libs.plugins.kotlin.android)
alias(libs.plugins.dokka) alias(libs.plugins.dokka)
`maven-publish` `maven-publish`
signing
} }
android { android {
@ -59,13 +60,14 @@ publishing {
register<MavenPublication>("release") { register<MavenPublication>("release") {
groupId = "de.mm20.launcher2" groupId = "de.mm20.launcher2"
artifactId = "shared" artifactId = "shared"
version = "1.0.0-SNAPSHOT" version = libs.versions.pluginSdk.get()
artifact(javadocJar) artifact(javadocJar)
pom { pom {
name = "Kvaesitso shared library" name = "Kvaesitso shared library"
description = "Contains shared code between the launcher and its plugin SDK" description = "Contains shared code between the launcher and its plugin SDK"
url = "https://kvaesitso.mm20.de"
licenses { licenses {
license { license {
name = "The Apache License, Version 2.0" name = "The Apache License, Version 2.0"
@ -75,9 +77,15 @@ publishing {
developers { developers {
developer { developer {
id = "MM2-0" 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 { afterEvaluate {
@ -96,4 +104,9 @@ publishing {
} }
} }
} }
}
signing {
useGpgCmd()
sign(publishing.publications["release"])
} }

View File

@ -3,6 +3,8 @@ minSdk = "26"
compileSdk = "34" compileSdk = "34"
targetSdk = "34" targetSdk = "34"
pluginSdk = "1.0.0-alpha02"
gradle = "8.1.2" gradle = "8.1.2"
android-gradle-plugin = "8.2.2" android-gradle-plugin = "8.2.2"
protobuf-gradle-plugin = "0.9.4" protobuf-gradle-plugin = "0.9.4"

View File

@ -4,6 +4,7 @@ plugins {
alias(libs.plugins.kotlin.plugin.serialization) alias(libs.plugins.kotlin.plugin.serialization)
alias(libs.plugins.dokka) alias(libs.plugins.dokka)
`maven-publish` `maven-publish`
signing
} }
android { android {
@ -71,13 +72,14 @@ publishing {
register<MavenPublication>("release") { register<MavenPublication>("release") {
groupId = "de.mm20.launcher2" groupId = "de.mm20.launcher2"
artifactId = "plugin-sdk" artifactId = "plugin-sdk"
version = "1.0.0-SNAPSHOT" version = libs.versions.pluginSdk.get()
artifact(javadocJar) artifact(javadocJar)
pom { pom {
name = "Kvaesitso SDK" name = "Kvaesitso SDK"
description = "Plugin SDK for the Kvaesitso launcher" description = "Plugin SDK for the Kvaesitso launcher"
url = "https://kvaesitso.mm20.de"
licenses { licenses {
license { license {
name = "The Apache License, Version 2.0" name = "The Apache License, Version 2.0"
@ -87,9 +89,15 @@ publishing {
developers { developers {
developer { developer {
id = "MM2-0" 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/plugins/sdk"
}
} }
afterEvaluate { afterEvaluate {
@ -108,4 +116,9 @@ publishing {
} }
} }
} }
}
signing {
useGpgCmd()
sign(publishing.publications["release"])
} }