Skip to content

Commit

Permalink
add: cd
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawa01 committed Dec 30, 2024
1 parent 6d56bcc commit 60eebea
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions convention-plugins/src/main/kotlin/root.publication.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

}
}

0 comments on commit 60eebea

Please sign in to comment.