|
60 | 60 | <junit-jupiter.version>5.12.2</junit-jupiter.version> |
61 | 61 | </properties> |
62 | 62 |
|
63 | | - <repositories> |
64 | | - <!-- The order of definitions matters. Explicitly defining central here |
65 | | - to make sure it has the highest priority. --> |
66 | | - <repository> |
67 | | - <id>central</id> |
68 | | - <url>https://repo.maven.apache.org/maven2</url> |
69 | | - <snapshots> |
70 | | - <enabled>false</enabled> |
71 | | - </snapshots> |
72 | | - </repository> |
73 | | - </repositories> |
74 | | - |
75 | 63 | <dependencies> |
76 | 64 | <dependency> |
77 | 65 | <groupId>commons-io</groupId> |
|
167 | 155 | </dependency> |
168 | 156 | </dependencies> |
169 | 157 |
|
170 | | - <pluginRepositories> |
171 | | - <!-- The order of definitions matters. Explicitly defining central here |
172 | | - to make sure it has the highest priority. --> |
173 | | - <pluginRepository> |
174 | | - <id>central</id> |
175 | | - <url>https://repo.maven.apache.org/maven2</url> |
176 | | - <snapshots> |
177 | | - <enabled>false</enabled> |
178 | | - </snapshots> |
179 | | - </pluginRepository> |
180 | | - </pluginRepositories> |
181 | | - |
182 | | - <distributionManagement> |
183 | | - <snapshotRepository> |
184 | | - <id>ossrh</id> |
185 | | - <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> |
186 | | - </snapshotRepository> |
187 | | - <repository> |
188 | | - <id>ossrh</id> |
189 | | - <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
190 | | - </repository> |
191 | | - </distributionManagement> |
192 | | - |
193 | 158 | <build> |
194 | 159 | <pluginManagement> |
195 | 160 | <plugins> |
|
300 | 265 | </build> |
301 | 266 | <profiles> |
302 | 267 | <profile> |
303 | | - <id>ossrh</id> |
| 268 | + <id>publish-sonatype-central-portal</id> |
304 | 269 | <build> |
305 | 270 | <plugins> |
306 | 271 | <plugin> |
|
344 | 309 | </plugin> |
345 | 310 |
|
346 | 311 | <plugin> |
347 | | - <groupId>org.sonatype.plugins</groupId> |
348 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
349 | | - <version>1.7.0</version> |
| 312 | + <groupId>org.sonatype.central</groupId> |
| 313 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 314 | + <version>0.7.0</version> |
350 | 315 | <extensions>true</extensions> |
351 | 316 | <configuration> |
352 | | - <serverId>ossrh</serverId> |
353 | | - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
354 | | - <!-- Sometimes OSSRH is really slow --> |
355 | | - <stagingProgressTimeoutMinutes>30</stagingProgressTimeoutMinutes> |
356 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 317 | + <publishingServerId>sonatype-central-portal</publishingServerId> |
| 318 | + <autoPublish>true</autoPublish> |
357 | 319 | </configuration> |
358 | 320 | </plugin> |
359 | 321 | </plugins> |
|
0 commit comments