Skip to content

Commit efbf06b

Browse files
committed
use central-publishing-maven-plugin
1 parent 488968c commit efbf06b

File tree

1 file changed

+12
-22
lines changed

1 file changed

+12
-22
lines changed

pom.xml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.github.davidmoten</groupId>
88
<artifactId>sonatype-parent</artifactId>
9-
<version>0.3-SNAPSHOT</version>
9+
<version>0.2.1-SNAPSHOT</version>
1010

1111
<name>${project.artifactId}</name>
1212
<description>Parent pom to ease deployment to Maven Central</description>
@@ -75,15 +75,15 @@
7575
</configuration>
7676
</plugin>
7777
<plugin>
78-
<groupId>org.sonatype.plugins</groupId>
79-
<artifactId>nexus-staging-maven-plugin</artifactId>
80-
<version>1.6.8</version>
81-
<extensions>true</extensions>
82-
<configuration>
83-
<serverId>ossrh</serverId>
84-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
85-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
86-
</configuration>
78+
<groupId>org.sonatype.central</groupId>
79+
<artifactId>central-publishing-maven-plugin</artifactId>
80+
<version>0.7.0</version>
81+
<extensions>true</extensions>
82+
<configuration>
83+
<publishingServerId>central</publishingServerId>
84+
<autoPublish>true</autoPublish>
85+
<waitUntil>published</waitUntil>
86+
</configuration>
8787
</plugin>
8888
</plugins>
8989
</build>
@@ -95,7 +95,7 @@
9595
<plugin>
9696
<groupId>org.apache.maven.plugins</groupId>
9797
<artifactId>maven-source-plugin</artifactId>
98-
<version>3.0.1</version>
98+
<version>3.3.1</version>
9999
<executions>
100100
<execution>
101101
<id>attach-sources</id>
@@ -108,7 +108,7 @@
108108
<plugin>
109109
<groupId>org.apache.maven.plugins</groupId>
110110
<artifactId>maven-javadoc-plugin</artifactId>
111-
<version>3.0.0</version>
111+
<version>3.11.2</version>
112112
<executions>
113113
<execution>
114114
<id>attach-javadocs</id>
@@ -136,14 +136,4 @@
136136
</build>
137137
</profile>
138138
</profiles>
139-
<distributionManagement>
140-
<snapshotRepository>
141-
<id>ossrh</id>
142-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
143-
</snapshotRepository>
144-
<repository>
145-
<id>ossrh</id>
146-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
147-
</repository>
148-
</distributionManagement>
149139
</project>

0 commit comments

Comments
 (0)