Skip to content

Commit bbc3ab1

Browse files
authored
Migrate to maven central portal plugin (#807)
* migrate to maven central portal * replace tabs with spaces * format
1 parent bb5be86 commit bbc3ab1

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
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: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -207,22 +207,15 @@
207207
</executions>
208208
</plugin>
209209
<plugin>
210-
<groupId>org.sonatype.plugins</groupId>
211-
<artifactId>nexus-staging-maven-plugin</artifactId>
210+
<groupId>org.sonatype.central</groupId>
211+
<artifactId>central-publishing-maven-plugin</artifactId>
212+
<version>0.7.0</version>
213+
<extensions>true</extensions>
212214
<configuration>
213-
<serverId>sonatype-nexus-staging</serverId>
214-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
215-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
215+
<publishingServerId>central</publishingServerId>
216+
<autoPublish>true</autoPublish>
217+
<waitUntil>published</waitUntil>
216218
</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>
226219
</plugin>
227220
<plugin>
228221
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)