From 1ab3718f628d5cd8a35d78c606b40da5588f283d Mon Sep 17 00:00:00 2001
From: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>
Date: Wed, 2 Jul 2025 17:08:36 +1200
Subject: [PATCH] Migrate publishing to go via Sonatype Central publishing
portal
---
README.md | 2 +-
pom.xml | 22 +++++-----------------
2 files changed, 6 insertions(+), 18 deletions(-)
diff --git a/README.md b/README.md
index c7f0dcec..e184cdce 100644
--- a/README.md
+++ b/README.md
@@ -337,7 +337,7 @@ package and push the .jar every time a commit changes a source file).
## Releasing
-* Make sure auth is configured for "ossrh" repository ID in your .m2/settings.xml
+* Make sure auth is configured for "central" repository ID in your .m2/settings.xml
* Update the version in src/main/ruby/jruby/rack/version.rb to the release version
* mvn release:prepare
* mvn release:perform (possibly with -DuseReleaseProfile=false due to Javadoc doclint failures for now)
diff --git a/pom.xml b/pom.xml
index bc886229..3186ca9b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -31,17 +31,6 @@
https://github.com/jruby/jruby-rack/issues
-
-
- ossrh
- https://oss.sonatype.org/content/repositories/snapshots
-
-
- ossrh
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
-
scm:git:git://github.com/jruby/jruby-rack.git
scm:git:git@github.com:jruby/jruby-rack.git
@@ -284,14 +273,13 @@
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.7.0
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.8.0
true
- ossrh
- https://oss.sonatype.org/
- false
+ central
+ true