Skip to content

Commit 0718871

Browse files
committed
Switch to Maven Central Portal for publishing
Updated all modules to use the new Maven Central Portal for snapshot and release publishing, replacing Sonatype Nexus endpoints. Updated plugin configuration to use central-publishing-maven-plugin, removed nexus-staging-maven-plugin, and adjusted workflow secrets and repository IDs accordingly. Bumped project version to 4.3.2-SNAPSHOT.
1 parent 32693e9 commit 0718871

13 files changed

Lines changed: 133 additions & 89 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,16 @@ jobs:
5050
env:
5151
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}
5252

53+
- name: maven-settings-action
54+
uses: s4u/maven-settings-action@v3.1.0
55+
with:
56+
servers: |
57+
[
58+
{ "id": "central", "username": "${{ secrets.MAVEN_USERNAME }}", "password": "${{ secrets.MAVEN_PASSWORD }}" }
59+
]
60+
5361
- name: Deploy Release
5462
run: mvn -P deploy -B -ff -ntp deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD"
5563
shell: bash
5664
env:
57-
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
58-
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
5965
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}

.github/workflows/snapshot.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
java-package: jdk
3535
architecture: x64
3636
cache: 'maven'
37-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
37+
server-id: central # Value of the distributionManagement/repository/id field of the pom.xml
3838
server-username: MAVEN_USERNAME
3939
server-password: MAVEN_PASSWORD
4040

@@ -50,10 +50,16 @@ jobs:
5050
env:
5151
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}
5252

53+
- name: maven-settings-action
54+
uses: s4u/maven-settings-action@v3.1.0
55+
with:
56+
servers: |
57+
[
58+
{ "id": "central", "username": "${{ secrets.MAVEN_USERNAME }}", "password": "${{ secrets.MAVEN_PASSWORD }}" }
59+
]
60+
5361
- name: Deploy Snapshot
54-
run: mvn -P deploy -B -ff -ntp deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD"
62+
run: mvn -P deploy -B -ff -ntp deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD"
5563
shell: bash
5664
env:
57-
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
58-
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
5965
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
## Release 4.3.1
1+
## Release 4.3.2
2+
3+
### New Changes
4+
5+
6+
### Issue Fixes
7+
8+
## Release 4.3.1 - Aug 5, 2025
29

310
### New Changes
411

nitrite-bom/pom.xml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.dizitart</groupId>
66
<artifactId>nitrite-java</artifactId>
7-
<version>4.3.1-SNAPSHOT</version>
7+
<version>4.3.2-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>nitrite-bom</artifactId>
@@ -60,11 +60,16 @@
6060

6161
<repositories>
6262
<repository>
63-
<id>sonatype-nexus-snapshots</id>
64-
<name>Sonatype Nexus Snapshots</name>
65-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
66-
<releases><enabled>false</enabled></releases>
67-
<snapshots><enabled>true</enabled></snapshots>
63+
<name>Central Portal Snapshots</name>
64+
<id>central-portal-snapshots</id>
65+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
66+
<releases>
67+
<enabled>false</enabled>
68+
</releases>
69+
<snapshots>
70+
<enabled>true</enabled>
71+
</snapshots>
6872
</repository>
6973
</repositories>
74+
7075
</project>

nitrite-jackson-mapper/pom.xml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.dizitart</groupId>
66
<artifactId>nitrite-java</artifactId>
7-
<version>4.3.1-SNAPSHOT</version>
7+
<version>4.3.2-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>nitrite-jackson-mapper</artifactId>
@@ -152,11 +152,16 @@
152152

153153
<repositories>
154154
<repository>
155-
<id>sonatype-nexus-snapshots</id>
156-
<name>Sonatype Nexus Snapshots</name>
157-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
158-
<releases><enabled>false</enabled></releases>
159-
<snapshots><enabled>true</enabled></snapshots>
155+
<name>Central Portal Snapshots</name>
156+
<id>central-portal-snapshots</id>
157+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
158+
<releases>
159+
<enabled>false</enabled>
160+
</releases>
161+
<snapshots>
162+
<enabled>true</enabled>
163+
</snapshots>
160164
</repository>
161165
</repositories>
166+
162167
</project>

nitrite-mvstore-adapter/pom.xml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.dizitart</groupId>
66
<artifactId>nitrite-java</artifactId>
7-
<version>4.3.1-SNAPSHOT</version>
7+
<version>4.3.2-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>nitrite-mvstore-adapter</artifactId>
@@ -190,11 +190,16 @@
190190

191191
<repositories>
192192
<repository>
193-
<id>sonatype-nexus-snapshots</id>
194-
<name>Sonatype Nexus Snapshots</name>
195-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
196-
<releases><enabled>false</enabled></releases>
197-
<snapshots><enabled>true</enabled></snapshots>
193+
<name>Central Portal Snapshots</name>
194+
<id>central-portal-snapshots</id>
195+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
196+
<releases>
197+
<enabled>false</enabled>
198+
</releases>
199+
<snapshots>
200+
<enabled>true</enabled>
201+
</snapshots>
198202
</repository>
199203
</repositories>
204+
200205
</project>

nitrite-native-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.dizitart</groupId>
99
<artifactId>nitrite-java</artifactId>
10-
<version>4.3.1-SNAPSHOT</version>
10+
<version>4.3.2-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>nitrite-native-tests</artifactId>

nitrite-rocksdb-adapter/pom.xml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.dizitart</groupId>
66
<artifactId>nitrite-java</artifactId>
7-
<version>4.3.1-SNAPSHOT</version>
7+
<version>4.3.2-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>nitrite-rocksdb-adapter</artifactId>
@@ -188,11 +188,16 @@
188188

189189
<repositories>
190190
<repository>
191-
<id>sonatype-nexus-snapshots</id>
192-
<name>Sonatype Nexus Snapshots</name>
193-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
194-
<releases><enabled>false</enabled></releases>
195-
<snapshots><enabled>true</enabled></snapshots>
191+
<name>Central Portal Snapshots</name>
192+
<id>central-portal-snapshots</id>
193+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
194+
<releases>
195+
<enabled>false</enabled>
196+
</releases>
197+
<snapshots>
198+
<enabled>true</enabled>
199+
</snapshots>
196200
</repository>
197201
</repositories>
202+
198203
</project>

nitrite-spatial/pom.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.dizitart</groupId>
66
<artifactId>nitrite-java</artifactId>
7-
<version>4.3.1-SNAPSHOT</version>
7+
<version>4.3.2-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>nitrite-spatial</artifactId>
@@ -117,10 +117,6 @@
117117
<groupId>org.codehaus.mojo</groupId>
118118
<artifactId>animal-sniffer-maven-plugin</artifactId>
119119
</plugin>
120-
<plugin>
121-
<groupId>org.sonatype.plugins</groupId>
122-
<artifactId>nexus-staging-maven-plugin</artifactId>
123-
</plugin>
124120
<plugin>
125121
<groupId>org.apache.maven.plugins</groupId>
126122
<artifactId>maven-jar-plugin</artifactId>
@@ -137,11 +133,15 @@
137133

138134
<repositories>
139135
<repository>
140-
<id>sonatype-nexus-snapshots</id>
141-
<name>Sonatype Nexus Snapshots</name>
142-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
143-
<releases><enabled>false</enabled></releases>
144-
<snapshots><enabled>true</enabled></snapshots>
136+
<name>Central Portal Snapshots</name>
137+
<id>central-portal-snapshots</id>
138+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
139+
<releases>
140+
<enabled>false</enabled>
141+
</releases>
142+
<snapshots>
143+
<enabled>true</enabled>
144+
</snapshots>
145145
</repository>
146146
</repositories>
147147
</project>

nitrite-support/pom.xml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.dizitart</groupId>
66
<artifactId>nitrite-java</artifactId>
7-
<version>4.3.1-SNAPSHOT</version>
7+
<version>4.3.2-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>nitrite-support</artifactId>
@@ -141,11 +141,15 @@
141141

142142
<repositories>
143143
<repository>
144-
<id>sonatype-nexus-snapshots</id>
145-
<name>Sonatype Nexus Snapshots</name>
146-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
147-
<releases><enabled>false</enabled></releases>
148-
<snapshots><enabled>true</enabled></snapshots>
144+
<name>Central Portal Snapshots</name>
145+
<id>central-portal-snapshots</id>
146+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
147+
<releases>
148+
<enabled>false</enabled>
149+
</releases>
150+
<snapshots>
151+
<enabled>true</enabled>
152+
</snapshots>
149153
</repository>
150154
</repositories>
151155
</project>

0 commit comments

Comments
 (0)