Skip to content

Commit 5be7938

Browse files
committed
Switch to Sonatype Central publishing
1 parent 2d28032 commit 5be7938

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

DEV-GUIDE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jupyter kernelspec install "${TARGET_PATH}" --name=java --user
1717

1818
### Prerequisites
1919

20-
You will need a **JDK** >= 11 and proper credentials for the `s01-ss-sonatype-releases` repository
20+
You will need a **JDK** >= 11 and proper credentials for the `sonatype-central` repository
21+
(see [docs](https://central.sonatype.org/publish/generate-portal-token/))
2122

2223
### Perform the Release
2324

@@ -33,6 +34,6 @@ Still everything is done through a single set of Maven commands:
3334
mvn release:prepare -Prelease
3435
mvn release:perform -Prelease
3536
```
36-
Go to https://s01.oss.sonatype.org/ and manually close and release the staging repository.
37+
Go to https://central.sonatype.com/publishing and manually publish created bundle.
3738

3839
Go to [GitHub Releases](https://github.com/dflib/jjava/releases) to manually edit the created draft and publish it.

pom.xml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,14 @@
6262
<connection>scm:git:https://github.com/dflib/jjava</connection>
6363
<developerConnection>scm:git:ssh://[email protected]/dflib/jjava</developerConnection>
6464
<url>https://github.com/dflib/jjava</url>
65-
<tag>1.0-a5</tag>
65+
<tag>HEAD</tag>
6666
</scm>
6767

6868
<distributionManagement>
6969
<repository>
70-
<uniqueVersion>false</uniqueVersion>
71-
<id>s01-oss-sonatype-releases</id>
72-
<name>Deployment Repository</name>
73-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
70+
<id>sonatype-central</id>
71+
<name>Sonatype Central Portal Repository</name>
7472
</repository>
75-
<snapshotRepository>
76-
<id>s01-oss-sonatype-snapshots</id>
77-
<name>Snapshot Repository</name>
78-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
79-
</snapshotRepository>
8073
</distributionManagement>
8174

8275
<dependencyManagement>
@@ -251,13 +244,12 @@
251244
</configuration>
252245
</plugin>
253246
<plugin>
254-
<groupId>org.sonatype.plugins</groupId>
255-
<artifactId>nexus-staging-maven-plugin</artifactId>
247+
<groupId>org.sonatype.central</groupId>
248+
<artifactId>central-publishing-maven-plugin</artifactId>
249+
<version>0.7.0</version>
256250
<extensions>true</extensions>
257251
<configuration>
258-
<serverId>s01-oss-sonatype-releases</serverId>
259-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
260-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
252+
<publishingServerId>sonatype-central</publishingServerId>
261253
</configuration>
262254
</plugin>
263255
</plugins>

0 commit comments

Comments
 (0)