Skip to content

Commit 5f0fb65

Browse files
authored
SWI-8327 Deploy Workflow (#198)
1 parent 77f20b8 commit 5f0fb65

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
distribution: 'adopt'
4444
java-version: 21
45-
server-id: 'central'
45+
server-id: 'ossrh'
4646
server-username: PUBLISHER_USERNAME
4747
server-password: PUBLISHER_PASSWORD
4848
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}

pom.xml

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

0 commit comments

Comments
 (0)