|
56 | 56 | </sonar.exclusions> |
57 | 57 | </properties> |
58 | 58 |
|
59 | | - <repositories> |
60 | | - <!-- The order of definitions matters. Explicitly defining central here |
61 | | - to make sure it has the highest priority. --> |
62 | | - <repository> |
63 | | - <id>central</id> |
64 | | - <url>https://repo.maven.apache.org/maven2</url> |
65 | | - <snapshots> |
66 | | - <enabled>false</enabled> |
67 | | - </snapshots> |
68 | | - </repository> |
69 | | - </repositories> |
70 | | - |
71 | | - <pluginRepositories> |
72 | | - <!-- The order of definitions matters. Explicitly defining central here |
73 | | - to make sure it has the highest priority. --> |
74 | | - <pluginRepository> |
75 | | - <id>central</id> |
76 | | - <url>https://repo.maven.apache.org/maven2</url> |
77 | | - <snapshots> |
78 | | - <enabled>false</enabled> |
79 | | - </snapshots> |
80 | | - </pluginRepository> |
81 | | - </pluginRepositories> |
82 | | - |
83 | | - <distributionManagement> |
84 | | - <snapshotRepository> |
85 | | - <id>ossrh</id> |
86 | | - <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> |
87 | | - </snapshotRepository> |
88 | | - <repository> |
89 | | - <id>ossrh</id> |
90 | | - <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
91 | | - </repository> |
92 | | - </distributionManagement> |
93 | | - |
94 | 59 | <dependencyManagement> |
95 | 60 | <dependencies> |
96 | 61 | <dependency> |
|
252 | 217 | </build> |
253 | 218 | <profiles> |
254 | 219 | <profile> |
255 | | - <id>ossrh</id> |
| 220 | + <id>publish-sonatype-central-portal</id> |
256 | 221 | <build> |
257 | 222 | <plugins> |
258 | 223 | <plugin> |
|
296 | 261 | </plugin> |
297 | 262 |
|
298 | 263 | <plugin> |
299 | | - <groupId>org.sonatype.plugins</groupId> |
300 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
301 | | - <version>1.7.0</version> |
| 264 | + <groupId>org.sonatype.central</groupId> |
| 265 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 266 | + <version>0.7.0</version> |
302 | 267 | <extensions>true</extensions> |
303 | 268 | <configuration> |
304 | | - <serverId>ossrh</serverId> |
305 | | - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
306 | | - <!-- Sometimes OSSRH is really slow --> |
307 | | - <stagingProgressTimeoutMinutes>30</stagingProgressTimeoutMinutes> |
308 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 269 | + <publishingServerId>sonatype-central-portal</publishingServerId> |
| 270 | + <autoPublish>true</autoPublish> |
| 271 | + <waitUntil>published</waitUntil> |
309 | 272 | </configuration> |
310 | 273 | </plugin> |
311 | 274 | </plugins> |
|
0 commit comments