Skip to content

Commit cc9169f

Browse files
committed
Update publishing process
1 parent 2083cbb commit cc9169f

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

.github/workflows/release_maven_central.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
distribution: "temurin"
1919
java-package: "jdk"
2020
check-latest: true
21-
server-id: "ossrh"
22-
server-username: OSSRH_USERNAME
23-
server-password: OSSRH_PASSWORD
21+
server-id: "central"
22+
server-username: SERVER_USERNAME
23+
server-password: SERVER_PASSWORD
2424
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2525
gpg-passphrase: GPG_PASSPHRASE
2626
cache: "maven"
2727
- name: Build & Deploy
2828
run: mvn -U -B clean deploy -P release
2929
env:
30-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
31-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
30+
SERVER_USERNAME: ${{ secrets.SERVER_USERNAME }}
31+
SERVER_PASSWORD: ${{ secrets.SERVER_PASSWORD }}
3232
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A Java library for making http client and websocket requests easily.
1818
- [Supported Response Types](#supported-response-types)
1919
- [Interface Default Methods](#interface-default-methods)
2020
- [Exception Handling](#exception-handling)
21-
- [Retries](#retries) **NEW**
21+
- [Retries](#retries)
2222
- [WebSocket](#websocket)
2323
- [Examples](#-examples)
2424
- [Contributing](#-contributing)

pom.xml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737

3838
<distributionManagement>
3939
<snapshotRepository>
40-
<id>ossrh</id>
41-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
40+
<id>central</id>
41+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
4242
</snapshotRepository>
4343
<repository>
44-
<id>ossrh</id>
45-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
44+
<id>central</id>
45+
<url>https://central.sonatype.com/</url>
4646
</repository>
4747
</distributionManagement>
4848

@@ -54,25 +54,25 @@
5454

5555
<!-- Dependencies Versions -->
5656
<lombok.version>1.18.38</lombok.version>
57-
<jackson.version>2.19.0</jackson.version>
57+
<jackson.version>2.19.1</jackson.version>
5858
<okhttp.version>4.12.0</okhttp.version>
5959
<slf4j.version>2.0.17</slf4j.version>
60-
<junit.version>[5.11.0,6.0.0)</junit.version>
61-
<mockito.version>[5.14.0,6.0.0)</mockito.version>
60+
<junit.version>[5.11.0,5.99.99)</junit.version>
61+
<mockito.version>[5.14.0,5.99.99)</mockito.version>
6262

6363
<!-- Plugins Versions -->
6464
<compiler.version>3.14.0</compiler.version>
65-
<enforcer.version>3.5.0</enforcer.version>
65+
<enforcer.version>3.6.0</enforcer.version>
6666
<surefire.version>3.5.3</surefire.version>
67-
<exec.version>3.5.0</exec.version>
67+
<exec.version>3.5.1</exec.version>
6868
<jacoco.version>0.8.13</jacoco.version>
69-
<helper.version>3.6.0</helper.version>
69+
<helper.version>3.6.1</helper.version>
7070
<versions.version>2.18.0</versions.version>
7171
<source.version>3.3.1</source.version>
7272
<javadoc.version>3.11.2</javadoc.version>
73-
<gpg.version>3.2.7</gpg.version>
74-
<sonatype.version>1.7.0</sonatype.version>
75-
<spotless.version>2.44.4</spotless.version>
73+
<gpg.version>3.2.8</gpg.version>
74+
<central.version>0.8.0</central.version>
75+
<spotless.version>2.44.5</spotless.version>
7676
<dependency.version>3.8.1</dependency.version>
7777
</properties>
7878

@@ -182,14 +182,14 @@
182182
</executions>
183183
</plugin>
184184
<plugin>
185-
<groupId>org.sonatype.plugins</groupId>
186-
<artifactId>nexus-staging-maven-plugin</artifactId>
187-
<version>${sonatype.version}</version>
185+
<groupId>org.sonatype.central</groupId>
186+
<artifactId>central-publishing-maven-plugin</artifactId>
187+
<version>${central.version}</version>
188188
<extensions>true</extensions>
189189
<configuration>
190-
<serverId>ossrh</serverId>
191-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
192-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
190+
<publishingServerId>central</publishingServerId>
191+
<autoPublish>true</autoPublish>
192+
<waitUntil>published</waitUntil>
193193
</configuration>
194194
</plugin>
195195
</plugins>
@@ -344,7 +344,7 @@
344344
<ignoreVersions>
345345
<ignoreVersion>
346346
<type>regex</type>
347-
<version>.+-(alpha|beta).*</version>
347+
<version>(?i).*-(alpha|beta|m|rc)([-.]?\d+)?</version>
348348
</ignoreVersion>
349349
</ignoreVersions>
350350
</ruleSet>

0 commit comments

Comments
 (0)