Skip to content

Commit 7ed91db

Browse files
authored
clean up of sonatype references (#808)
1 parent bbc3ab1 commit 7ed91db

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
java-version: ${{ matrix.java_version }}
3535
cache: 'maven'
3636
# Value of the distributionManagement/repository/id field of the pom.xml
37-
server-id: sonatype-nexus-snapshots
37+
server-id: central
3838
server-username: OSS_USERNAME
3939
server-password: OSS_PASSWORD
4040
- name: Cache SonarCloud packages

pom.xml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,6 @@
5757
<tag>HEAD</tag>
5858
</scm>
5959

60-
<distributionManagement>
61-
<snapshotRepository>
62-
<id>sonatype-nexus-snapshots</id>
63-
<name>Sonatype Nexus snapshot repository</name>
64-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
65-
</snapshotRepository>
66-
<repository>
67-
<id>sonatype-nexus-staging</id>
68-
<name>Sonatype Nexus release repository</name>
69-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
70-
</repository>
71-
</distributionManagement>
72-
7360
<properties>
7461
<maven.compiler.source>1.8</maven.compiler.source>
7562
<maven.compiler.target>1.8</maven.compiler.target>
@@ -331,10 +318,9 @@
331318
<version>3.6.0</version>
332319
</plugin>
333320
<plugin>
334-
<groupId>org.sonatype.plugins</groupId>
335-
<artifactId>nexus-staging-maven-plugin</artifactId>
336-
<version>1.7.0</version>
337-
<extensions>true</extensions>
321+
<groupId>org.sonatype.central</groupId>
322+
<artifactId>central-publishing-maven-plugin</artifactId>
323+
<version>0.7.0</version>
338324
</plugin>
339325
<plugin>
340326
<groupId>org.jacoco</groupId>

0 commit comments

Comments
 (0)