From 60eebea7e45a425e7d876ee9b6f6f32f1e30b906 Mon Sep 17 00:00:00 2001 From: kigawa Date: Mon, 30 Dec 2024 17:10:50 +0900 Subject: [PATCH] add: cd --- .../main/kotlin/root.publication.gradle.kts | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/convention-plugins/src/main/kotlin/root.publication.gradle.kts b/convention-plugins/src/main/kotlin/root.publication.gradle.kts index c6c91e7..3a2355a 100644 --- a/convention-plugins/src/main/kotlin/root.publication.gradle.kts +++ b/convention-plugins/src/main/kotlin/root.publication.gradle.kts @@ -16,28 +16,28 @@ 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 +//publishing { // 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") +// 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/staging/deploy/maven2/")) + snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")) + username = System.getenv("MAVEN_USERNAME") + password = System.getenv("MAVEN_PASSWORD") + } + + } +}