Skip to content

Commit 77f20b8

Browse files
authored
SWI-8327 Update Deploy Process (#197)
* SWI-8327 Update Deploy Process * add `autoPublish`
1 parent 6c1f0ab commit 77f20b8

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ jobs:
4242
with:
4343
distribution: 'adopt'
4444
java-version: 21
45-
server-id: 'ossrh'
46-
server-username: OSSRH_USERNAME
47-
server-password: OSSRH_PASSWORD
45+
server-id: 'central'
46+
server-username: PUBLISHER_USERNAME
47+
server-password: PUBLISHER_PASSWORD
4848
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
4949
gpg-passphrase: MAVEN_GPG_PASSPHRASE
5050

@@ -82,8 +82,8 @@ jobs:
8282
- name: Publish to Apache Maven Central
8383
run: mvn deploy -DskipTests
8484
env:
85-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
86-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
85+
PUBLISHER_USERNAME: ${{ secrets.PUBLISHER_USERNAME }}
86+
PUBLISHER_PASSWORD: ${{ secrets.PUBLISHER_PASSWORD }}
8787
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
8888

8989
- name: Notify Slack

pom.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,12 @@
217217
</executions>
218218
</plugin>
219219
<plugin>
220-
<groupId>org.sonatype.plugins</groupId>
221-
<artifactId>nexus-staging-maven-plugin</artifactId>
222-
<version>1.7.0</version>
220+
<groupId>org.sonatype.central</groupId>
221+
<artifactId>central-publishing-maven-plugin</artifactId>
222+
<version>0.8.0</version>
223223
<extensions>true</extensions>
224224
<configuration>
225-
<serverId>ossrh</serverId>
226-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
227-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
225+
<autoPublish>true</autoPublish>
228226
</configuration>
229227
</plugin>
230228
<!-- Use spotless plugin to automatically format code, remove unused import, etc

0 commit comments

Comments
 (0)