Skip to content

Commit 629b7f5

Browse files
Merge pull request #45 from phocassoftware/fix-release
change to central
2 parents b63a7e9 + 1486729 commit 629b7f5

File tree

2 files changed

+9
-25
lines changed

2 files changed

+9
-25
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
servers: >
2525
[
26-
{ "id": "sonatype", "username": "${{ secrets.MAVEN_CENTRAL_TOKEN_USER }}", "password": "${{ secrets.MAVEN_CENTRAL_TOKEN_PASS }}" }
26+
{ "id": "central", "username": "${{ secrets.MAVEN_CENTRAL_TOKEN_USER }}", "password": "${{ secrets.MAVEN_CENTRAL_TOKEN_PASS }}" }
2727
]
2828
2929
- run: git config --global user.name phocasadmin; git config --global user.email [email protected]

pom.xml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,6 @@
3737
</developer>
3838
</developers>
3939

40-
<distributionManagement>
41-
<snapshotRepository>
42-
<id>sonatype</id>
43-
<name>central snapshot</name>
44-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
45-
</snapshotRepository>
46-
<repository>
47-
<id>sonatype</id>
48-
<name>central release</name>
49-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
50-
</repository>
51-
</distributionManagement>
52-
53-
5440
<licenses>
5541
<license>
5642
<name>Apache License, Version 2.0</name>
@@ -154,16 +140,14 @@
154140
</executions>
155141
</plugin>
156142
<plugin>
157-
<groupId>org.sonatype.plugins</groupId>
158-
<artifactId>nexus-staging-maven-plugin</artifactId>
159-
<version>1.7.0</version>
160-
<extensions>true</extensions>
161-
<configuration>
162-
<serverId>sonatype</serverId>
163-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
164-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
165-
</configuration>
166-
</plugin>
143+
<groupId>org.sonatype.central</groupId>
144+
<artifactId>central-publishing-maven-plugin</artifactId>
145+
<version>0.7.0</version>
146+
<extensions>true</extensions>
147+
<configuration>
148+
<publishingServerId>central</publishingServerId>
149+
</configuration>
150+
</plugin>
167151
</plugins>
168152
</build>
169153
</profile>

0 commit comments

Comments
 (0)