From 38aaff588260fefdfee79616cdf72903a1054ed7 Mon Sep 17 00:00:00 2001 From: kigawa Date: Mon, 30 Dec 2024 17:38:32 +0900 Subject: [PATCH] add: cd --- .github/workflows/deploy_maven_central.yml | 2 +- .../main/kotlin/root.publication.gradle.kts | 21 ++----------------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/.github/workflows/deploy_maven_central.yml b/.github/workflows/deploy_maven_central.yml index 73e956a..92fcd75 100644 --- a/.github/workflows/deploy_maven_central.yml +++ b/.github/workflows/deploy_maven_central.yml @@ -37,7 +37,7 @@ jobs: -PmavenCentralPassword=${{ secrets.MAVEN_PASSWORD }} -PsigningInMemoryKeyId=${{ secrets.MAVEN_GPG_KEY_ID }} -PsigningInMemoryPassword=${{ secrets.MAVEN_GPG_PASSPHRASE }} - publishKotlinMultiplatformPublicationToMavenCentralRepository + allTests publishKotlinMultiplatformPublicationToMavenCentralRepository env: MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} diff --git a/convention-plugins/src/main/kotlin/root.publication.gradle.kts b/convention-plugins/src/main/kotlin/root.publication.gradle.kts index cb360af..82f7df2 100644 --- a/convention-plugins/src/main/kotlin/root.publication.gradle.kts +++ b/convention-plugins/src/main/kotlin/root.publication.gradle.kts @@ -2,7 +2,7 @@ plugins { id("io.github.gradle-nexus.publish-plugin") } object Conf { - const val GROUP = "net.kigawa.hakate" + const val GROUP = "net.kigawa" const val VERSION = "1.0.0" } @@ -13,28 +13,11 @@ allprojects { version = Conf.VERSION } -//publishing { -// repositories { -// maven { -// name = "OSSRH" -// url = URI("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") -// credentials { -// username = System.getenv("MAVEN_USERNAME") -// password = System.getenv("MAVEN_PASSWORD") -// } -// } -// } -//} nexusPublishing { // Configure maven central repository // https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh repositories { - sonatype { //only for users registered in Sonatype after 24 Feb 2021 -// nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/")) -// snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")) - username = System.getenv("MAVEN_USERNAME") - password = System.getenv("MAVEN_PASSWORD") - } + sonatype() } }