|
47 | 47 | <developerConnection>scm:git@github.com:splitio/java-client.git</developerConnection> |
48 | 48 | <url>git@github.com:splitio/java-client.git</url> |
49 | 49 | </scm> |
50 | | - <distributionManagement> |
51 | | - <snapshotRepository> |
52 | | - <id>ossrh</id> |
53 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
54 | | - </snapshotRepository> |
55 | | - <repository> |
56 | | - <id>ossrh</id> |
57 | | - <url>https://oss.sonatype.org/content/repositories/releases</url> |
58 | | - </repository> |
59 | | - </distributionManagement> |
| 50 | + <!-- distributionManagement block removed as it's not needed with central-publishing-maven-plugin --> |
60 | 51 | <repositories> |
61 | 52 | <repository> |
62 | 53 | <id>ossrh</id> |
|
188 | 179 |
|
189 | 180 | <profile> |
190 | 181 | <id>release</id> |
191 | | - <distributionManagement> |
192 | | - <snapshotRepository> |
193 | | - <id>ossrh</id> |
194 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
195 | | - </snapshotRepository> |
196 | | - <repository> |
197 | | - <id>ossrh</id> |
198 | | - <url>https://oss.sonatype.org/content/repositories/releases</url> |
199 | | - </repository> |
200 | | - </distributionManagement> |
| 182 | + <!-- distributionManagement block removed as it's not needed with central-publishing-maven-plugin --> |
201 | 183 | <build> |
202 | 184 | <plugins> |
203 | 185 | <plugin> |
|
230 | 212 | </execution> |
231 | 213 | </executions> |
232 | 214 | </plugin> |
233 | | - <!-- Release plugin --> |
| 215 | + <!-- Central Repository publishing plugin --> |
234 | 216 | <plugin> |
235 | | - <groupId>org.sonatype.plugins</groupId> |
236 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
237 | | - <version>1.6.3</version> |
| 217 | + <groupId>org.sonatype.central</groupId> |
| 218 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 219 | + <version>0.7.0</version> |
238 | 220 | <extensions>true</extensions> |
239 | 221 | <configuration> |
240 | | - <serverId>ossrh</serverId> |
241 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
242 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 222 | + <publishingServerId>central</publishingServerId> |
| 223 | + <autoPublish>false</autoPublish> |
| 224 | + <waitUntil>published</waitUntil> |
243 | 225 | </configuration> |
244 | 226 | </plugin> |
245 | 227 | </plugins> |
|
0 commit comments