From 9ffd314e841437a6b468452ba5a1dc2bedcf0525 Mon Sep 17 00:00:00 2001 From: rvenky125 Date: Thu, 18 Apr 2024 17:19:33 +0530 Subject: [PATCH] final publishing configuration --- .github/workflows/publishToMC.yml | 4 ++-- device-info/build.gradle.kts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publishToMC.yml b/.github/workflows/publishToMC.yml index 96a4c36..b39c5d4 100644 --- a/.github/workflows/publishToMC.yml +++ b/.github/workflows/publishToMC.yml @@ -47,10 +47,10 @@ jobs: run: chmod +x gradlew - name: Build - run: ./gradlew assemble + run: ./gradlew build - name: Publish Library on Maven Central 🚀 - run: ./gradlew publishKotlinMultiplatformPublicationToMavenCentralRepository --no-configuration-cache + run: ./gradlew clean publish --no-daemon --no-parallel --no-configuration-cache --stacktrace env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.USERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.PASSWORD }} diff --git a/device-info/build.gradle.kts b/device-info/build.gradle.kts index 09901c6..6926759 100644 --- a/device-info/build.gradle.kts +++ b/device-info/build.gradle.kts @@ -1,6 +1,7 @@ import com.vanniktech.maven.publish.JavadocJar import com.vanniktech.maven.publish.KotlinMultiplatform import com.vanniktech.maven.publish.SonatypeHost +import org.jetbrains.dokka.gradle.DokkaTask import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.GradleKpmIosX64Variant val libVersion = "0.0.12-alpha" @@ -93,14 +94,13 @@ android { } } - mavenPublishing { publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) configure( KotlinMultiplatform( javadocJar = JavadocJar.Empty(), sourcesJar = true, - androidVariantsToPublish = listOf("debug", "release") + androidVariantsToPublish = listOf("debug", "release"), ) )