Skip to content

Commit ecf488f

Browse files
committed
migrate to maven central portal
1 parent bb5be86 commit ecf488f

File tree

2 files changed

+12
-19
lines changed

2 files changed

+12
-19
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
java-version: 11
2525
cache: 'maven'
2626
# Value of the distributionManagement/repository/id field of the pom.xml
27-
server-id: sonatype-nexus-staging
27+
server-id: central
2828
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2929
server-username: OSS_USERNAME
3030
server-password: OSS_PASSWORD

pom.xml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -206,24 +206,17 @@
206206
</execution>
207207
</executions>
208208
</plugin>
209-
<plugin>
210-
<groupId>org.sonatype.plugins</groupId>
211-
<artifactId>nexus-staging-maven-plugin</artifactId>
212-
<configuration>
213-
<serverId>sonatype-nexus-staging</serverId>
214-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
215-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
216-
</configuration>
217-
<executions>
218-
<execution>
219-
<id>nexus-deploy</id>
220-
<phase>deploy</phase>
221-
<goals>
222-
<goal>deploy</goal>
223-
</goals>
224-
</execution>
225-
</executions>
226-
</plugin>
209+
<plugin>
210+
<groupId>org.sonatype.central</groupId>
211+
<artifactId>central-publishing-maven-plugin</artifactId>
212+
<version>0.7.0</version>
213+
<extensions>true</extensions>
214+
<configuration>
215+
<publishingServerId>central</publishingServerId>
216+
<autoPublish>true</autoPublish>
217+
<waitUntil>published</waitUntil>
218+
</configuration>
219+
</plugin>
227220
<plugin>
228221
<groupId>org.apache.maven.plugins</groupId>
229222
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)