From 4e1991bb0e2c6fed578eda9f94cc8e9f3eecbd5d Mon Sep 17 00:00:00 2001 From: StageGuard Date: Sun, 22 Dec 2024 22:07:26 +0800 Subject: [PATCH] fix publishing --- gradle.properties | 2 +- mediamp-api/build.gradle.kts | 11 +++++++---- mediamp-core/build.gradle.kts | 13 ++++++++----- mediamp-source-kotlinx-io/build.gradle.kts | 12 ++++++++---- 4 files changed, 24 insertions(+), 14 deletions(-) diff --git a/gradle.properties b/gradle.properties index 01c734c..29a72f1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,7 +15,7 @@ version.name=0.1.0-dev-1 package.version=1.0.0 kotlin.mpp.androidSourceSetLayoutVersion=2 org.gradle.caching=true -org.gradle.configuration-cache=true +org.gradle.configuration-cache=false # major(1)-minor(pad to 2)-patch(1)-meta(1) android.version.code=30200 android.compile.sdk=34 diff --git a/mediamp-api/build.gradle.kts b/mediamp-api/build.gradle.kts index 6a4c753..a5a2cc0 100644 --- a/mediamp-api/build.gradle.kts +++ b/mediamp-api/build.gradle.kts @@ -63,9 +63,9 @@ kotlin { } mavenPublishing { - configure(KotlinMultiplatform(JavadocJar.Empty(), true, listOf("release"))) + configure(KotlinMultiplatform(JavadocJar.Empty(), true, listOf("debug", "release"))) - publishToMavenCentral(SonatypeHost.DEFAULT) + publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) signAllPublications() @@ -75,8 +75,11 @@ mavenPublishing { url = "https://github.com/open-ani/mediamp" licenses { - name = "GNU General Public License, version 3" - url = "https://github.com/open-ani/mediamp/blob/main/LICENSE" + license { + name = "GNU General Public License, Version 3" + url = "https://github.com/open-ani/mediamp/blob/main/LICENSE" + distribution = "https://www.gnu.org/licenses/gpl-3.0.txt" + } } developers { diff --git a/mediamp-core/build.gradle.kts b/mediamp-core/build.gradle.kts index 710a841..4cf0e22 100644 --- a/mediamp-core/build.gradle.kts +++ b/mediamp-core/build.gradle.kts @@ -71,9 +71,9 @@ kotlin { } mavenPublishing { - configure(KotlinMultiplatform(JavadocJar.Empty(), true, listOf("release"))) + configure(KotlinMultiplatform(JavadocJar.Empty(), true, listOf("debug", "release"))) - publishToMavenCentral(SonatypeHost.DEFAULT) + publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) signAllPublications() @@ -82,9 +82,12 @@ mavenPublishing { description = "Core library for MediaMP" url = "https://github.com/open-ani/mediamp" - licenses { - name = "GNU General Public License, version 3" - url = "https://github.com/open-ani/mediamp/blob/main/LICENSE" + licenses { + license { + name = "GNU General Public License, Version 3" + url = "https://github.com/open-ani/mediamp/blob/main/LICENSE" + distribution = "https://www.gnu.org/licenses/gpl-3.0.txt" + } } developers { diff --git a/mediamp-source-kotlinx-io/build.gradle.kts b/mediamp-source-kotlinx-io/build.gradle.kts index f5266ff..663c3e4 100644 --- a/mediamp-source-kotlinx-io/build.gradle.kts +++ b/mediamp-source-kotlinx-io/build.gradle.kts @@ -56,9 +56,10 @@ kotlin { } mavenPublishing { - configure(KotlinMultiplatform(JavadocJar.Empty(), true, listOf("release"))) + configure(KotlinMultiplatform(JavadocJar.Empty(), true, listOf("debug", "release"))) + - publishToMavenCentral(SonatypeHost.DEFAULT) + publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) signAllPublications() @@ -68,8 +69,11 @@ mavenPublishing { url = "https://github.com/open-ani/mediamp" licenses { - name = "GNU General Public License, version 3" - url = "https://github.com/open-ani/mediamp/blob/main/LICENSE" + license { + name = "GNU General Public License, Version 3" + url = "https://github.com/open-ani/mediamp/blob/main/LICENSE" + distribution = "https://www.gnu.org/licenses/gpl-3.0.txt" + } } developers {