|
49 | 49 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
50 | 50 | </properties> |
51 | 51 |
|
52 | | - <repositories> |
53 | | - <!-- The order of definitions matters. Explicitly defining central here |
54 | | - to make sure it has the highest priority. --> |
55 | | - <repository> |
56 | | - <id>central</id> |
57 | | - <url>https://repo.maven.apache.org/maven2</url> |
58 | | - <snapshots> |
59 | | - <enabled>false</enabled> |
60 | | - </snapshots> |
61 | | - </repository> |
62 | | - </repositories> |
63 | | - |
64 | | - <pluginRepositories> |
65 | | - <!-- The order of definitions matters. Explicitly defining central here |
66 | | - to make sure it has the highest priority. --> |
67 | | - <pluginRepository> |
68 | | - <id>central</id> |
69 | | - <url>https://repo.maven.apache.org/maven2</url> |
70 | | - <snapshots> |
71 | | - <enabled>false</enabled> |
72 | | - </snapshots> |
73 | | - </pluginRepository> |
74 | | - </pluginRepositories> |
75 | | - |
76 | | - <distributionManagement> |
77 | | - <snapshotRepository> |
78 | | - <id>ossrh</id> |
79 | | - <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> |
80 | | - </snapshotRepository> |
81 | | - <repository> |
82 | | - <id>ossrh</id> |
83 | | - <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
84 | | - </repository> |
85 | | - </distributionManagement> |
86 | | - |
87 | 52 | <dependencies> |
88 | 53 | <!-- TestContainers --> |
89 | 54 | <dependency> |
|
239 | 204 | </build> |
240 | 205 | </profile> |
241 | 206 | <profile> |
242 | | - <id>ossrh</id> |
| 207 | + <id>publish-sonatype-central-portal</id> |
243 | 208 | <build> |
244 | 209 | <plugins> |
245 | 210 | <plugin> |
|
283 | 248 | </plugin> |
284 | 249 |
|
285 | 250 | <plugin> |
286 | | - <groupId>org.sonatype.plugins</groupId> |
287 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
288 | | - <version>1.7.0</version> |
| 251 | + <groupId>org.sonatype.central</groupId> |
| 252 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 253 | + <version>0.7.0</version> |
289 | 254 | <extensions>true</extensions> |
290 | 255 | <configuration> |
291 | | - <serverId>ossrh</serverId> |
292 | | - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
293 | | - <!-- Sometimes OSSRH is really slow --> |
294 | | - <stagingProgressTimeoutMinutes>30</stagingProgressTimeoutMinutes> |
295 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 256 | + <publishingServerId>sonatype-central-portal</publishingServerId> |
| 257 | + <autoPublish>true</autoPublish> |
296 | 258 | </configuration> |
297 | 259 | </plugin> |
298 | 260 | </plugins> |
|
0 commit comments