Skip to content

Commit 522aa20

Browse files
authored
update way to publish to maven central (#537)
1 parent fbec7f0 commit 522aa20

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
distribution: 'temurin'
2121
java-version: 11
22-
server-id: ossrh
22+
server-id: central
2323
server-username: MAVEN_USERNAME
2424
server-password: MAVEN_CENTRAL_TOKEN
2525

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
distribution: 'temurin'
2121
java-version: 11
22-
server-id: ossrh
22+
server-id: central
2323
server-username: MAVEN_USERNAME
2424
server-password: MAVEN_CENTRAL_TOKEN
2525
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}

pom.xml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@
119119
<version>3.15.0</version>
120120
</plugin>
121121
<plugin>
122-
<groupId>org.sonatype.plugins</groupId>
123-
<artifactId>nexus-staging-maven-plugin</artifactId>
124-
<version>1.6.13</version>
122+
<groupId>org.sonatype.central</groupId>
123+
<artifactId>central-publishing-maven-plugin</artifactId>
124+
<version>0.7.0</version>
125125
<extensions>true</extensions>
126126
<configuration>
127-
<serverId>ossrh</serverId>
128-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
129-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
127+
<publishingServerId>central</publishingServerId>
128+
<autoPublish>true</autoPublish>
129+
<waitUntil>published</waitUntil>
130130
</configuration>
131131
</plugin>
132132
<plugin>
@@ -254,15 +254,4 @@
254254
<connection>scm:git:git://github.com/gluonhq/gluonfx-maven-plugin.git</connection>
255255
<developerConnection>scm:git:ssh://[email protected]:gluonhq/gluonfx-maven-plugin.git</developerConnection>
256256
</scm>
257-
258-
<distributionManagement>
259-
<snapshotRepository>
260-
<id>ossrh</id>
261-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
262-
</snapshotRepository>
263-
<repository>
264-
<id>ossrh</id>
265-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
266-
</repository>
267-
</distributionManagement>
268257
</project>

0 commit comments

Comments
 (0)