From e5e90763d07c745e6aa0ad55805b47e66606a0c5 Mon Sep 17 00:00:00 2001 From: MM20 <15646950+MM2-0@users.noreply.github.com> Date: Tue, 6 Feb 2024 00:25:16 +0100 Subject: [PATCH] Update publishing config for maven central --- core/shared/build.gradle.kts | 17 +++++++++++++++-- gradle/libs.versions.toml | 2 ++ plugins/sdk/build.gradle.kts | 17 +++++++++++++++-- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/core/shared/build.gradle.kts b/core/shared/build.gradle.kts index 6011e632..bd537e03 100644 --- a/core/shared/build.gradle.kts +++ b/core/shared/build.gradle.kts @@ -3,6 +3,7 @@ plugins { alias(libs.plugins.kotlin.android) alias(libs.plugins.dokka) `maven-publish` + signing } android { @@ -59,13 +60,14 @@ publishing { register("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"]) } \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e0e583f8..1799984c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,6 +3,8 @@ minSdk = "26" compileSdk = "34" targetSdk = "34" +pluginSdk = "1.0.0-alpha02" + gradle = "8.1.2" android-gradle-plugin = "8.2.2" protobuf-gradle-plugin = "0.9.4" diff --git a/plugins/sdk/build.gradle.kts b/plugins/sdk/build.gradle.kts index bf7258ac..a45d179f 100644 --- a/plugins/sdk/build.gradle.kts +++ b/plugins/sdk/build.gradle.kts @@ -4,6 +4,7 @@ plugins { alias(libs.plugins.kotlin.plugin.serialization) alias(libs.plugins.dokka) `maven-publish` + signing } android { @@ -71,13 +72,14 @@ publishing { register("release") { groupId = "de.mm20.launcher2" artifactId = "plugin-sdk" - version = "1.0.0-SNAPSHOT" + version = libs.versions.pluginSdk.get() artifact(javadocJar) pom { name = "Kvaesitso SDK" description = "Plugin SDK for the Kvaesitso launcher" + url = "https://kvaesitso.mm20.de" licenses { license { name = "The Apache License, Version 2.0" @@ -87,9 +89,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/plugins/sdk" + } } afterEvaluate { @@ -108,4 +116,9 @@ publishing { } } } +} + +signing { + useGpgCmd() + sign(publishing.publications["release"]) } \ No newline at end of file