|
52 | 52 | <skipTests>true</skipTests> |
53 | 53 | </properties> |
54 | 54 |
|
55 | | - <repositories> |
56 | | - <!-- The order of definitions matters. Explicitly defining central here |
57 | | - to make sure it has the highest priority. --> |
58 | | - <repository> |
59 | | - <id>central</id> |
60 | | - <url>https://repo.maven.apache.org/maven2</url> |
61 | | - <snapshots> |
62 | | - <enabled>false</enabled> |
63 | | - </snapshots> |
64 | | - </repository> |
65 | | - </repositories> |
66 | | - |
67 | | - <pluginRepositories> |
68 | | - <!-- The order of definitions matters. Explicitly defining central here |
69 | | - to make sure it has the highest priority. --> |
70 | | - <pluginRepository> |
71 | | - <id>central</id> |
72 | | - <url>https://repo.maven.apache.org/maven2</url> |
73 | | - <snapshots> |
74 | | - <enabled>false</enabled> |
75 | | - </snapshots> |
76 | | - </pluginRepository> |
77 | | - </pluginRepositories> |
78 | | - |
79 | | - <distributionManagement> |
80 | | - <snapshotRepository> |
81 | | - <id>ossrh</id> |
82 | | - <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> |
83 | | - </snapshotRepository> |
84 | | - <repository> |
85 | | - <id>ossrh</id> |
86 | | - <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
87 | | - </repository> |
88 | | - </distributionManagement> |
89 | | - |
90 | 55 | <dependencies> |
91 | 56 | <dependency> |
92 | 57 | <groupId>org.testcontainers</groupId> |
|
293 | 258 | </properties> |
294 | 259 | </profile> |
295 | 260 | <profile> |
296 | | - <id>ossrh</id> |
| 261 | + <id>publish-sonatype-central-portal</id> |
297 | 262 | <build> |
298 | 263 | <plugins> |
299 | 264 | <plugin> |
|
337 | 302 | </plugin> |
338 | 303 |
|
339 | 304 | <plugin> |
340 | | - <groupId>org.sonatype.plugins</groupId> |
341 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
342 | | - <version>1.7.0</version> |
| 305 | + <groupId>org.sonatype.central</groupId> |
| 306 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 307 | + <version>0.7.0</version> |
343 | 308 | <extensions>true</extensions> |
344 | 309 | <configuration> |
345 | | - <serverId>ossrh</serverId> |
346 | | - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
347 | | - <!-- Sometimes OSSRH is really slow --> |
348 | | - <stagingProgressTimeoutMinutes>30</stagingProgressTimeoutMinutes> |
349 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 310 | + <publishingServerId>sonatype-central-portal</publishingServerId> |
| 311 | + <autoPublish>true</autoPublish> |
350 | 312 | </configuration> |
351 | 313 | </plugin> |
352 | 314 | </plugins> |
|
0 commit comments