Skip to content

Commit 48c3cda

Browse files
Merge pull request #15 from dynamiatools/5.4.x
feat: migrate to new Maven Central publish
2 parents fa1cc3a + e270756 commit 48c3cda

3 files changed

Lines changed: 8 additions & 24 deletions

File tree

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v3
20-
- name: Set up JDK 17
20+
- name: Set up JDK 21
2121
uses: actions/setup-java@v3
2222
with:
2323
java-version: 21

.github/workflows/release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Version 5.0.0
2-
# This workflow will build a Java project with Maven
3-
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
4-
51
name: Release and Deploy
62

73
on:
@@ -15,14 +11,14 @@ jobs:
1511

1612
steps:
1713
- uses: actions/checkout@v4
18-
- name: Set up JDK 17
14+
- name: Set up JDK 21
1915
uses: actions/setup-java@v4
2016
with:
2117
java-version: 21
2218
architecture: x64
2319
distribution: temurin
2420
cache: maven
25-
server-id: ossrh
21+
server-id: central
2622
server-username: MAVEN_USERNAME # env variable for username in deploy
2723
server-password: MAVEN_PASSWORD # env variable for token in deploy
2824
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}

sources/pom.xml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,13 @@
7878
</plugin>
7979

8080
<plugin>
81-
<groupId>org.sonatype.plugins</groupId>
82-
<artifactId>nexus-staging-maven-plugin</artifactId>
83-
<version>1.7.0</version>
81+
<groupId>org.sonatype.central</groupId>
82+
<artifactId>central-publishing-maven-plugin</artifactId>
83+
<version>0.8.0</version>
8484
<extensions>true</extensions>
8585
<configuration>
86-
<serverId>ossrh</serverId>
87-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
88-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
86+
<publishingServerId>central</publishingServerId>
87+
<autoPublish>true</autoPublish>
8988
</configuration>
9089
</plugin>
9190
<plugin>
@@ -126,17 +125,6 @@
126125
</dependency>
127126
</dependencies>
128127

129-
<distributionManagement>
130-
<snapshotRepository>
131-
<id>ossrh</id>
132-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
133-
</snapshotRepository>
134-
<repository>
135-
<id>ossrh</id>
136-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
137-
</repository>
138-
</distributionManagement>
139-
140128
<repositories>
141129
<repository>
142130
<id>zkoss-ce</id>

0 commit comments

Comments
 (0)