Skip to content

Commit bcc7149

Browse files
committed
fix: sonatype url and ossrh token
1 parent 506ce75 commit bcc7149

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

build-logic/conventions/src/main/kotlin/Publish.kt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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
}

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ plugins {
44
}
55

66
group = "me.devnatan"
7-
version = "3.3.0"
7+
version = "3.3.0-SNAPSHOT"

0 commit comments

Comments
 (0)