Skip to content

Commit 53555e0

Browse files
authored
ci: migrating publishing to use central portal (#82)
1 parent 7e0a623 commit 53555e0

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

lib/java-server-sdk-otel/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ publishing {
7777
nexusPublishing {
7878
clientTimeout = java.time.Duration.ofMinutes(2) // we've seen extremely long delays in creating repositories
7979
repositories {
80-
sonatype()
80+
sonatype{
81+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
82+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
83+
}
8184
}
8285
}
8386

lib/java-server-sdk-redis-store/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ publishing {
134134
nexusPublishing {
135135
clientTimeout = java.time.Duration.ofMinutes(2) // we've seen extremely long delays in creating repositories
136136
repositories {
137-
sonatype()
137+
sonatype{
138+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
139+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
140+
}
138141
}
139142
}
140143

lib/shared/common/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ publishing {
8383
nexusPublishing {
8484
clientTimeout.set(Duration.ofMinutes(2)) // we've seen extremely long delays in creating repositories
8585
repositories {
86-
sonatype()
86+
sonatype{
87+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
88+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
89+
}
8790
}
8891
}
8992

lib/shared/internal/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ publishing {
7777
nexusPublishing {
7878
clientTimeout.set(Duration.ofMinutes(2)) // we've seen extremely long delays in creating repositories
7979
repositories {
80-
sonatype()
80+
sonatype{
81+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
82+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
83+
}
8184
}
8285
}
8386

0 commit comments

Comments
 (0)