Skip to content

Commit 05a2391

Browse files
Update changelog
1 parent 6bc3242 commit 05a2391

File tree

2 files changed

+60
-12
lines changed

2 files changed

+60
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy to Maven Central
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Java
16+
uses: actions/setup-java@v4
17+
with:
18+
distribution: 'temurin'
19+
java-version: '17'
20+
cache: 'maven'
21+
server-id: central
22+
server-username: ${{ secrets.CENTRAL_USERNAME }}
23+
server-password: ${{ secrets.CENTRAL_PASSWORD }}
24+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
25+
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
26+
27+
- name: Deploy with Maven
28+
run: mvn clean deploy --batch-mode --no-transfer-progress -Psign-artifacts
29+
env:
30+
OSSRH_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
31+
OSSRH_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
32+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

pom.xml

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.hyperwallet</groupId>
66
<artifactId>sdk</artifactId>
7-
<version>3.0.1-SNAPSHOT</version>
7+
<version>3.0.0</version>
88
<packaging>jar</packaging>
99

1010
<name>hyperwallet-java-sdk</name>
@@ -67,16 +67,25 @@
6767
</executions>
6868
</plugin>
6969
<plugin>
70-
<groupId>org.sonatype.plugins</groupId>
71-
<artifactId>nexus-staging-maven-plugin</artifactId>
72-
<version>1.6.8</version>
70+
<groupId>org.sonatype.central</groupId>
71+
<artifactId>central-publishing-maven-plugin</artifactId>
72+
<version>0.7.0</version>
7373
<extensions>true</extensions>
7474
<configuration>
75-
<serverId>ossrh</serverId>
76-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
77-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
75+
<publishingServerId>central</publishingServerId>
7876
</configuration>
7977
</plugin>
78+
<!-- <plugin>-->
79+
<!-- <groupId>org.sonatype.plugins</groupId>-->
80+
<!-- <artifactId>nexus-staging-maven-plugin</artifactId>-->
81+
<!-- <version>1.6.8</version>-->
82+
<!-- <extensions>true</extensions>-->
83+
<!-- <configuration>-->
84+
<!-- <serverId>ossrh</serverId>-->
85+
<!-- <nexusUrl>https://oss.sonatype.org/</nexusUrl>-->
86+
<!-- <autoReleaseAfterClose>true</autoReleaseAfterClose>-->
87+
<!-- </configuration>-->
88+
<!-- </plugin>-->
8089
</plugins>
8190
</build>
8291
</profile>
@@ -299,16 +308,23 @@
299308
</plugin>
300309
</plugins>
301310
</build>
302-
303311
<distributionManagement>
304312
<snapshotRepository>
305-
<id>ossrh</id>
306-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
313+
<id>central</id>
314+
<url>https://central.sonatype.com</url>
307315
</snapshotRepository>
308316
<repository>
309-
<id>ossrh</id>
310-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
317+
<id>central</id>
318+
<url>https://central.sonatype.com</url>
311319
</repository>
320+
<!-- <snapshotRepository>-->
321+
<!-- <id>ossrh</id>-->
322+
<!-- <url>https://oss.sonatype.org/content/repositories/snapshots</url>-->
323+
<!-- </snapshotRepository>-->
324+
<!-- <repository>-->
325+
<!-- <id>ossrh</id>-->
326+
<!-- <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>-->
327+
<!-- </repository>-->
312328
</distributionManagement>
313329

314330
</project>

0 commit comments

Comments
 (0)