Skip to content

Commit c261828

Browse files
authored
Update to use new Maven Central Portal (#27)
1 parent c8a6665 commit c261828

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

ci-settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<servers>
66
<server>
77
<!-- Maven Central Deployment -->
8-
<id>ossrh</id>
8+
<id>central</id>
99
<username>${env.SONATYPE_USERNAME}</username>
1010
<password>${env.SONATYPE_PASSWORD}</password>
1111
</server>

pom.xml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,6 @@
3131
<url>https://github.com/dampcake/bencode/issues</url>
3232
</issueManagement>
3333

34-
<distributionManagement>
35-
<snapshotRepository>
36-
<id>ossrh</id>
37-
<name>Sonatype Nexus Snapshots</name>
38-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
39-
</snapshotRepository>
40-
<repository>
41-
<id>ossrh</id>
42-
<name>Nexus Release Repository</name>
43-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
44-
</repository>
45-
</distributionManagement>
46-
4734
<developers>
4835
<developer>
4936
<id>dampcake</id>
@@ -194,6 +181,16 @@
194181
<scmBranch>gh-pages</scmBranch>
195182
</configuration>
196183
</plugin>
184+
185+
<plugin>
186+
<groupId>org.sonatype.central</groupId>
187+
<artifactId>central-publishing-maven-plugin</artifactId>
188+
<version>0.7.0</version>
189+
<extensions>true</extensions>
190+
<configuration>
191+
<publishingServerId>central</publishingServerId>
192+
</configuration>
193+
</plugin>
197194
</plugins>
198195
</build>
199196
</project>

0 commit comments

Comments
 (0)