Skip to content

Commit a051587

Browse files
committed
👷 自动构建迁移到maven central portal
1 parent 245cf72 commit a051587

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

.github/workflows/maven-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
java-version: '8'
2323
distribution: 'temurin'
24-
server-id: ossrh
24+
server-id: central
2525
server-username: MAVEN_USERNAME
2626
server-password: MAVEN_PASSWORD
2727
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}

pom.xml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -330,18 +330,6 @@
330330
</dependencies>
331331
</dependencyManagement>
332332

333-
<distributionManagement>
334-
<snapshotRepository>
335-
<id>ossrh</id>
336-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
337-
</snapshotRepository>
338-
<repository>
339-
<id>ossrh</id>
340-
<name>OSSRH Repository</name>
341-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
342-
</repository>
343-
</distributionManagement>
344-
345333
<profiles>
346334
<profile>
347335
<id>doclint-java8-disable</id>
@@ -431,14 +419,14 @@
431419

432420
<plugins>
433421
<plugin>
434-
<groupId>org.sonatype.plugins</groupId>
435-
<artifactId>nexus-staging-maven-plugin</artifactId>
436-
<version>1.6.3</version>
422+
<groupId>org.sonatype.central</groupId>
423+
<artifactId>central-publishing-maven-plugin</artifactId>
424+
<version>0.7.0</version>
437425
<extensions>true</extensions>
438426
<configuration>
439-
<serverId>ossrh</serverId>
440-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
441-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
427+
<deploymentName>Release WxJava:${project.version}</deploymentName>
428+
<publishingServerId>central</publishingServerId>
429+
<autoPublish>true</autoPublish>
442430
</configuration>
443431
</plugin>
444432
<plugin>

0 commit comments

Comments
 (0)