Skip to content

Commit 7e54d15

Browse files
Merge pull request #569 from DataDog/carlosroman/AGTMETRICS-311-migrate-sonatype
Moved package release process to the new sonatype portal Co-authored-by: carlosroman <[email protected]>
2 parents 8c1d83d + 14a22f7 commit 7e54d15

File tree

2 files changed

+7
-25
lines changed

2 files changed

+7
-25
lines changed

pom.xml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
4545
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
4646
<maven-surefire-plugin.version>3.0.0-M6</maven-surefire-plugin.version>
47-
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
47+
<central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version>
4848
<!-- Note: using project checkstyle with AOSP style
4949
find the default google java checkstyle config here -
5050
<checkstyle.config.location>google_checks.xml</checkstyle.config.location>
@@ -81,34 +81,16 @@
8181
</property>
8282
</activation>
8383

84-
<distributionManagement>
85-
<snapshotRepository>
86-
<id>nexus</id>
87-
<!-- Use the localhost endpoint for testing -->
88-
<!-- <url>http://localhost:8081/repository/maven-snapshots/</url> -->
89-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
90-
</snapshotRepository>
91-
<repository>
92-
<id>nexus</id>
93-
<!-- Use the localhost endpoint for testing -->
94-
<!-- <url>http://localhost:8081/repository/maven-releases/</url> -->
95-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
96-
</repository>
97-
</distributionManagement>
98-
9984
<build>
10085
<plugins>
10186
<plugin>
102-
<groupId>org.sonatype.plugins</groupId>
103-
<artifactId>nexus-staging-maven-plugin</artifactId>
104-
<version>${nexus-staging-maven-plugin.version}</version>
87+
<groupId>org.sonatype.central</groupId>
88+
<artifactId>central-publishing-maven-plugin</artifactId>
89+
<version>${central-publishing-maven-plugin.version}</version>
10590
<extensions>true</extensions>
10691
<configuration>
107-
<serverId>nexus</serverId>
108-
<!-- Use the localhost endpoint for testing -->
109-
<!-- <nexusUrl>http://localhost:8081/repository/maven-releases/</nexusUrl> -->
110-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
111-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
92+
<publishingServerId>central</publishingServerId>
93+
<waitUntil>validated</waitUntil>
11294
</configuration>
11395
</plugin>
11496
<plugin>

settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
44
<servers>
55
<server>
6-
<id>nexus</id>
6+
<id>central</id>
77
<username>${env.SONATYPE_USER}</username>
88
<password>${env.SONATYPE_PASS}</password>
99
</server>

0 commit comments

Comments
 (0)