Skip to content

Commit ba96e58

Browse files
committed
Migrate to publishing via new Sonatype Central publishing portal
1 parent 9836b37 commit ba96e58

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
@@ -337,7 +337,7 @@ package and push the .jar every time a commit changes a source file).
337337

338338
## Releasing
339339

340-
* Make sure auth is configured for "ossrh" repository ID in your .m2/settings.xml
340+
* Make sure auth is configured for "central" repository ID in your .m2/settings.xml
341341
* Update the version in src/main/ruby/jruby/rack/version.rb to the release version
342342
* mvn release:prepare
343343
* 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:git@github.com:jruby/jruby-rack.git</developerConnection>
@@ -284,14 +273,13 @@
284273
</executions>
285274
</plugin>
286275
<plugin>
287-
<groupId>org.sonatype.plugins</groupId>
288-
<artifactId>nexus-staging-maven-plugin</artifactId>
289-
<version>1.7.0</version>
276+
<groupId>org.sonatype.central</groupId>
277+
<artifactId>central-publishing-maven-plugin</artifactId>
278+
<version>0.8.0</version>
290279
<extensions>true</extensions>
291280
<configuration>
292-
<serverId>ossrh</serverId>
293-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
294-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
281+
<publishingServerId>central</publishingServerId>
282+
<autoPublish>true</autoPublish>
295283
</configuration>
296284
</plugin>
297285
<plugin>

0 commit comments

Comments
 (0)