@@ -69,12 +69,12 @@ limitations under the License.
6969 </ciManagement >
7070 <distributionManagement >
7171 <repository >
72- <id >ossrh </id >
73- <url >https://oss .sonatype.org/service/local/staging/deploy/maven2/ </url >
72+ <id >sonatype </id >
73+ <url >https://central .sonatype.com </url >
7474 </repository >
7575 <snapshotRepository >
76- <id >ossrh </id >
77- <url >https://oss .sonatype.org/content/repositories/ snapshots</url >
76+ <id >sonatype </id >
77+ <url >https://central .sonatype.com/repository/maven- snapshots/ </url >
7878 </snapshotRepository >
7979 </distributionManagement >
8080
@@ -87,6 +87,7 @@ limitations under the License.
8787 <maven .compiler.release>8</maven .compiler.release>
8888
8989 <!-- plugin versions -->
90+ <central-publish-plugin .version>0.7.0</central-publish-plugin .version>
9091 <checkstyle-plugin .version>3.3.0</checkstyle-plugin .version>
9192 <compiler-plugin .version>3.11.0</compiler-plugin .version>
9293 <dependency-plugin .version>3.6.0</dependency-plugin .version>
@@ -244,6 +245,11 @@ limitations under the License.
244245 <artifactId >maven-deploy-plugin</artifactId >
245246 <version >${deploy-plugin.version} </version >
246247 </plugin >
248+ <plugin >
249+ <groupId >org.sonatype.central</groupId >
250+ <artifactId >central-publishing-maven-plugin</artifactId >
251+ <version >${central-publish-plugin.version} </version >
252+ </plugin >
247253 <plugin >
248254 <groupId >org.apache.maven.plugins</groupId >
249255 <artifactId >maven-gpg-plugin</artifactId >
@@ -431,6 +437,15 @@ limitations under the License.
431437 <id >release</id >
432438 <build >
433439 <plugins >
440+ <plugin >
441+ <groupId >org.sonatype.central</groupId >
442+ <artifactId >central-publishing-maven-plugin</artifactId >
443+ <extensions >true</extensions >
444+ <configuration >
445+ <deploymentName >Build Tools ${project.version} </deploymentName >
446+ <publishingServerId >sonatype</publishingServerId >
447+ </configuration >
448+ </plugin >
434449 <plugin >
435450 <groupId >org.apache.maven.plugins</groupId >
436451 <artifactId >maven-gpg-plugin</artifactId >
0 commit comments