Skip to content

Commit bb58e18

Browse files
authored
Merge pull request #42 from MohamedRejeb/0.3x
Update nexus publish plugin and sonatype repositories
2 parents e8a56fb + 5daec70 commit bb58e18

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

convention-plugins/src/main/kotlin/root.publication.gradle.kts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import gradle.kotlin.dsl.accessors._cf23dfd706c1bf9cda1f64fe1da16a33.nexusPublishing
2+
13
plugins {
24
id("io.github.gradle-nexus.publish-plugin")
35
}
@@ -8,12 +10,15 @@ allprojects {
810
}
911

1012
nexusPublishing {
13+
repositories {
14+
sonatype()
15+
}
1116
// Configure maven central repository
12-
// https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh
1317
repositories {
18+
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
1419
sonatype {
15-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
16-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
20+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
21+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
1722
stagingProfileId.set(System.getenv("OSSRH_STAGING_PROFILE_ID"))
1823
username.set(System.getenv("OSSRH_USERNAME"))
1924
password.set(System.getenv("OSSRH_PASSWORD"))

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ androidx-activityCompose = "1.9.2"
99
androidx-core-ktx = "1.13.1"
1010
voyager = "1.1.0-beta02"
1111
spotless = "6.25.0"
12-
nexus-publish = "2.0.0-rc-1"
12+
nexus-publish = "2.0.0"
1313

1414
[libraries]
1515
spotless-gradle = { module = "com.diffplug.spotless:spotless-plugin-gradle", version.ref = "spotless" }

0 commit comments

Comments
 (0)