Skip to content

Commit

Permalink
org.jcommander managed by https://s01.oss.sonatype.org/
Browse files Browse the repository at this point in the history
Since we moved to a new groupId, and since all new groupIds are managed by https://s01.oss.sonatype.org/, several code locations in our build scripts need to reflect the changed URI.

See https://central.sonatype.org/publish/publish-guide/#releasing-to-central.
  • Loading branch information
mkarg committed Jul 14, 2023
1 parent abb201a commit c2f1915
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ jobs:
- name: Display next step
run: |
echo "Now go to https://oss.sonatype.org/index.html#stagingRepositories, select the repo, Close it and then Release it"
echo "Now go to https://s01.oss.sonatype.org/index.html#stagingRepositories, select the repo, Close it and then Release it"
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ tasks.withType<Test> {
//
// Releases:
// ./gradlew bintrayUpload (to JCenter)
// ./gradlew publish (to Sonatype, then go to https://oss.sonatype.org/index.html#stagingRepositories to publish)
// ./gradlew publish (to Sonatype, then go to https://s01.oss.sonatype.org/index.html#stagingRepositories to publish)
// Make sure that ~/.gradle/gradle.properties:
// signing.keyId=XXXXXXXX
// signing.password=
Expand Down Expand Up @@ -174,8 +174,8 @@ with(publishing) {
maven {
name = "sonatype"
url = if (This.version.contains("SNAPSHOT"))
uri("https://oss.sonatype.org/content/repositories/snapshots/") else
uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") else
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = project.findProperty("sonatypeUser")?.toString() ?: System.getenv("SONATYPE_USER")
password = project.findProperty("sonatypePassword")?.toString() ?: System.getenv("SONATYPE_PASSWORD")
Expand Down
6 changes: 3 additions & 3 deletions gradle/publishing-maven.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ uploadArchives {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2") {
authentication(userName: System.getenv('SONATYPE_USER'), password: System.getenv('SONATYPE_PASSWORD'))
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots") {
authentication(userName: System.getenv('SONATYPE_USER'), password: System.getenv('SONATYPE_PASSWORD'))
}
pom {
Expand Down Expand Up @@ -82,7 +82,7 @@ uploadArchives {

uploadArchives.doLast {
if (! version.contains("SNAPSHOT")) {
println("Now go to https://oss.sonatype.org/index.html#stagingRepositories to close" +
println("Now go to https://s01.oss.sonatype.org/index.html#stagingRepositories to close" +
" and publish the distribution")
}
}
2 changes: 1 addition & 1 deletion release
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# UI : https://oss.sonatype.org/index.html
# UI : https://s01.oss.sonatype.org/index.html
# Wiki: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
#
# deploy without tagging: mvn deploy -DperformRelease
Expand Down

0 comments on commit c2f1915

Please sign in to comment.