File tree Expand file tree Collapse file tree
build-logic/conventions/src/main/kotlin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ fun Project.configureMavenPublish() {
88 plugins.apply (" maven-publish" )
99
1010 val publicationVersion = project.version.toString() + " -SNAPSHOT"
11- val isReleaseVersion = ! publicationVersion.endsWith(" SNAPSHOT" )
1211
1312 configure<PublishingExtension > {
1413 publications {
@@ -49,15 +48,10 @@ fun Project.configureMavenPublish() {
4948 repositories {
5049 maven {
5150 name = " OSSRH"
52- url = uri(
53- if (isReleaseVersion)
54- " https://ossrh-staging-api.central.sonatype.com/service/local/"
55- else
56- " https://central.sonatype.com/repository/maven-snapshots/"
57- )
51+ url = uri(" https://central.sonatype.com/api/v1/publisher/maven" )
5852 credentials {
5953 username = findProperty(" ossrh.username" ) as String? ? : System .getenv(" OSSRH_USERNAME" )
60- password = findProperty(" ossrh.password " ) as String? ? : System .getenv(" OSSRH_PASSWORD " )
54+ password = findProperty(" ossrh.token " ) as String? ? : System .getenv(" OSSRH_TOKEN " )
6155 }
6256 }
6357 }
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ plugins {
44}
55
66group = " me.devnatan"
7- version = " 3.3.0"
7+ version = " 3.3.0-SNAPSHOT "
You can’t perform that action at this time.
0 commit comments