Skip to content

Commit aa4b2e2

Browse files
authored
Migrate publishing to go via new Sonatype Central publishing portal (#298)
Backports #294 to v1.2.x
1 parent d7221b0 commit aa4b2e2

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ package and push the .jar every time a commit changes a source file).
335335

336336
## Releasing
337337

338-
* Make sure auth is configured for "ossrh" repository ID in your .m2/settings.xml
338+
* Make sure auth is configured for "central" repository ID in your .m2/settings.xml
339339
* Update the version in src/main/ruby/jruby/rack/version.rb to the release version
340340
* mvn release:prepare
341341
* mvn release:perform (possibly with -DuseReleaseProfile=false due to Javadoc doclint failures for now)

pom.xml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,6 @@
3131
<url>https://github.com/jruby/jruby-rack/issues</url>
3232
</issueManagement>
3333

34-
<distributionManagement>
35-
<snapshotRepository>
36-
<id>ossrh</id>
37-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
38-
</snapshotRepository>
39-
<repository>
40-
<id>ossrh</id>
41-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
42-
</repository>
43-
</distributionManagement>
44-
4534
<scm>
4635
<connection>scm:git:git://github.com/jruby/jruby-rack.git</connection>
4736
<developerConnection>scm:git:[email protected]:jruby/jruby-rack.git</developerConnection>
@@ -290,14 +279,13 @@
290279
</executions>
291280
</plugin>
292281
<plugin>
293-
<groupId>org.sonatype.plugins</groupId>
294-
<artifactId>nexus-staging-maven-plugin</artifactId>
295-
<version>1.7.0</version>
282+
<groupId>org.sonatype.central</groupId>
283+
<artifactId>central-publishing-maven-plugin</artifactId>
284+
<version>0.8.0</version>
296285
<extensions>true</extensions>
297286
<configuration>
298-
<serverId>ossrh</serverId>
299-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
300-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
287+
<publishingServerId>central</publishingServerId>
288+
<autoPublish>true</autoPublish>
301289
</configuration>
302290
</plugin>
303291
<plugin>

0 commit comments

Comments
 (0)