|
25 | 25 | <jacoco-plugin-version>0.8.13</jacoco-plugin-version> |
26 | 26 | <maven-deploy-plugin-version>3.1.4</maven-deploy-plugin-version> |
27 | 27 | <maven-source-plugin-version>3.3.1</maven-source-plugin-version> |
28 | | - <nexus-staging-plugin-version>1.7.0</nexus-staging-plugin-version> |
| 28 | + <central-publish-plugin-version>0.8.0</central-publish-plugin-version> |
29 | 29 | <maven-gpg-plugin-version>3.2.7</maven-gpg-plugin-version> |
30 | 30 | <maven-source-plugin-version>3.3.1</maven-source-plugin-version> |
31 | 31 | <maven-jar-plugin-version>3.4.2</maven-jar-plugin-version> |
|
95 | 95 | <!-- We don't deploy snapshot releases --> |
96 | 96 | </snapshotRepository> |
97 | 97 | <repository> |
98 | | - <!-- This is where the nexus staging plugin will publish artifacts --> |
99 | | - <id>ossrh</id> |
100 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 98 | + <!-- Config needed by default deploy plugin (unused) --> |
| 99 | + <id>central</id> |
| 100 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
101 | 101 | </repository> |
102 | 102 | </distributionManagement> |
103 | 103 | <build> |
|
110 | 110 | <skip>true</skip> |
111 | 111 | </configuration> |
112 | 112 | </plugin> |
113 | | - <!-- Enable alternate nexus-staging-maven-plugin --> |
| 113 | + <!-- Enable alternate central-publishing-maven-plugin --> |
114 | 114 | <plugin> |
115 | | - <groupId>org.sonatype.plugins</groupId> |
116 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
| 115 | + <groupId>org.sonatype.central</groupId> |
| 116 | + <artifactId>central-publishing-maven-plugin</artifactId> |
117 | 117 | <extensions>true</extensions> |
118 | 118 | <configuration> |
119 | | - <serverId>ossrh</serverId> |
120 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
121 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
122 | | - <keepStagingRepositoryOnCloseRuleFailure>true</keepStagingRepositoryOnCloseRuleFailure> |
| 119 | + <publishingServerId>central</publishingServerId> |
| 120 | + <autoPublish>true</autoPublish> |
| 121 | + <waitUntil>published</waitUntil> |
123 | 122 | </configuration> |
124 | 123 | </plugin> |
125 | 124 | </plugins> |
|
249 | 248 | <version>${maven-deploy-plugin-version}</version> |
250 | 249 | </plugin> |
251 | 250 | <plugin> |
252 | | - <groupId>org.sonatype.plugins</groupId> |
253 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
254 | | - <version>${nexus-staging-plugin-version}</version> |
| 251 | + <groupId>org.sonatype.central</groupId> |
| 252 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 253 | + <version>${central-publish-plugin-version}</version> |
255 | 254 | </plugin> |
256 | 255 | <plugin> |
257 | 256 | <groupId>org.apache.maven.plugins</groupId> |
|
0 commit comments