Skip to content

Commit d06592a

Browse files
committed
[enhancement] migrate to new central-publishing-maven-plugin
1 parent c5cd301 commit d06592a

File tree

3 files changed

+18
-30
lines changed

3 files changed

+18
-30
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
java-version: 17
2020
distribution: temurin
2121
cache: maven
22-
server-id: ossrh
22+
server-id: central
2323
server-username: MAVEN_USERNAME
2424
server-password: MAVEN_PASSWORD
2525
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
java-version: 17
4747
distribution: temurin
4848
cache: maven
49-
server-id: ossrh
49+
server-id: central
5050
server-username: MAVEN_USERNAME
5151
server-password: MAVEN_PASSWORD
5252
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}

pom.xml

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@
4343
<dependency>
4444
<groupId>org.bouncycastle</groupId>
4545
<artifactId>bcprov-jdk18on</artifactId>
46-
<version>1.78.1</version>
46+
<version>1.82</version>
4747
</dependency>
4848
<dependency>
4949
<groupId>org.slf4j</groupId>
5050
<artifactId>slf4j-api</artifactId>
51-
<version>2.0.13</version>
51+
<version>2.0.17</version>
5252
</dependency>
5353
<dependency>
5454
<groupId>org.junit.jupiter</groupId>
5555
<artifactId>junit-jupiter-engine</artifactId>
56-
<version>5.10.3</version>
56+
<version>5.12.2</version>
5757
<scope>test</scope>
5858
</dependency>
5959
</dependencies>
@@ -64,7 +64,7 @@
6464
<plugin>
6565
<groupId>org.apache.maven.plugins</groupId>
6666
<artifactId>maven-clean-plugin</artifactId>
67-
<version>3.3.2</version>
67+
<version>3.4.1</version>
6868
</plugin>
6969
<plugin>
7070
<groupId>org.apache.maven.plugins</groupId>
@@ -74,7 +74,7 @@
7474
<plugin>
7575
<groupId>org.apache.maven.plugins</groupId>
7676
<artifactId>maven-compiler-plugin</artifactId>
77-
<version>3.13.0</version>
77+
<version>3.14.0</version>
7878
<configuration>
7979
<source>${java.version}</source>
8080
<target>${java.version}</target>
@@ -85,12 +85,12 @@
8585
<plugin>
8686
<groupId>org.apache.maven.plugins</groupId>
8787
<artifactId>maven-install-plugin</artifactId>
88-
<version>3.1.2</version>
88+
<version>3.1.4</version>
8989
</plugin>
9090
<plugin>
9191
<groupId>org.apache.maven.plugins</groupId>
9292
<artifactId>maven-deploy-plugin</artifactId>
93-
<version>3.1.2</version>
93+
<version>3.1.4</version>
9494
</plugin>
9595
<plugin>
9696
<groupId>org.apache.maven.plugins</groupId>
@@ -100,7 +100,7 @@
100100
<plugin>
101101
<groupId>org.apache.maven.plugins</groupId>
102102
<artifactId>maven-release-plugin</artifactId>
103-
<version>3.0.1</version>
103+
<version>3.1.1</version>
104104
<configuration>
105105
<tagNameFormat>v@{project.version}</tagNameFormat>
106106
<useReleaseProfile>true</useReleaseProfile>
@@ -123,7 +123,7 @@
123123
<plugin>
124124
<groupId>org.apache.maven.plugins</groupId>
125125
<artifactId>maven-javadoc-plugin</artifactId>
126-
<version>3.6.3</version>
126+
<version>3.12.0</version>
127127
<executions>
128128
<execution>
129129
<id>attach-javadocs</id>
@@ -141,7 +141,7 @@
141141
<plugin>
142142
<groupId>org.apache.maven.plugins</groupId>
143143
<artifactId>maven-surefire-plugin</artifactId>
144-
<version>3.2.5</version>
144+
<version>3.5.4</version>
145145
<configuration>
146146
<useFile>false</useFile>
147147
</configuration>
@@ -178,7 +178,7 @@
178178
<plugin>
179179
<groupId>org.apache.maven.plugins</groupId>
180180
<artifactId>maven-gpg-plugin</artifactId>
181-
<version>3.1.0</version>
181+
<version>3.2.8</version>
182182
<executions>
183183
<execution>
184184
<id>sign-artifacts</id>
@@ -196,29 +196,17 @@
196196
</executions>
197197
</plugin>
198198
<plugin>
199-
<groupId>org.sonatype.plugins</groupId>
200-
<artifactId>nexus-staging-maven-plugin</artifactId>
201-
<version>1.6.13</version>
199+
<groupId>org.sonatype.central</groupId>
200+
<artifactId>central-publishing-maven-plugin</artifactId>
201+
<version>0.9.0</version>
202202
<extensions>true</extensions>
203203
<configuration>
204-
<serverId>ossrh</serverId>
205-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
206-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
204+
<publishingServerId>central</publishingServerId>
205+
<autoPublish>true</autoPublish>
207206
</configuration>
208207
</plugin>
209208
</plugins>
210209
</build>
211-
<distributionManagement>
212-
<snapshotRepository>
213-
<id>ossrh</id>
214-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
215-
</snapshotRepository>
216-
<repository>
217-
<id>ossrh</id>
218-
<name>maven central</name>
219-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
220-
</repository>
221-
</distributionManagement>
222210
</profile>
223211
</profiles>
224212
</project>

0 commit comments

Comments
 (0)