|
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> |
|
234 | 199 | </properties> |
235 | 200 | </profile> |
236 | 201 | <profile> |
237 | | - <id>ossrh</id> |
| 202 | + <id>publish-sonatype-central-portal</id> |
238 | 203 | <build> |
239 | 204 | <plugins> |
240 | 205 | <plugin> |
|
278 | 243 | </plugin> |
279 | 244 |
|
280 | 245 | <plugin> |
281 | | - <groupId>org.sonatype.plugins</groupId> |
282 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
283 | | - <version>1.7.0</version> |
| 246 | + <groupId>org.sonatype.central</groupId> |
| 247 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 248 | + <version>0.7.0</version> |
284 | 249 | <extensions>true</extensions> |
285 | 250 | <configuration> |
286 | | - <serverId>ossrh</serverId> |
287 | | - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
288 | | - <!-- Sometimes OSSRH is really slow --> |
289 | | - <stagingProgressTimeoutMinutes>30</stagingProgressTimeoutMinutes> |
290 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 251 | + <publishingServerId>sonatype-central-portal</publishingServerId> |
| 252 | + <autoPublish>true</autoPublish> |
291 | 253 | </configuration> |
292 | 254 | </plugin> |
293 | 255 | </plugins> |
|
0 commit comments