|
58 | 58 | </scm> |
59 | 59 |
|
60 | 60 | <distributionManagement> |
61 | | - <snapshotRepository> |
62 | | - <id>sonatype-nexus-snapshots</id> |
63 | | - <name>Sonatype Nexus Snapshots</name> |
64 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
65 | | - </snapshotRepository> |
66 | 61 | <repository> |
67 | | - <id>sonatype-nexus-staging</id> |
68 | | - <name>Nexus Release Repository</name> |
69 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> |
70 | | - </repository> |
| 62 | + <id>central</id> |
| 63 | + <name>Sonatype Release Repository</name> |
| 64 | + <url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2</url> |
| 65 | + </repository> |
71 | 66 | </distributionManagement> |
72 | 67 |
|
73 | 68 | <properties> |
|
96 | 91 | <maven-deploy-plugin.version>3.1.4</maven-deploy-plugin.version> |
97 | 92 | <maven-site-plugin.version>3.21.0</maven-site-plugin.version> |
98 | 93 | <versions-maven-plugin.version>2.18.0</versions-maven-plugin.version> |
| 94 | + <central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version> |
99 | 95 |
|
100 | 96 | <!-- Project dependencies --> |
101 | 97 | <slf4j.version>2.0.17</slf4j.version> |
|
243 | 239 | <groupId>org.apache.maven.plugins</groupId> |
244 | 240 | <artifactId>maven-deploy-plugin</artifactId> |
245 | 241 | <version>${maven-deploy-plugin.version}</version> |
| 242 | + <configuration> |
| 243 | + <skip>true</skip> |
| 244 | + </configuration> |
246 | 245 | </plugin> |
247 | 246 | <plugin> |
248 | 247 | <groupId>org.apache.maven.plugins</groupId> |
|
357 | 356 | <id>release</id> |
358 | 357 | <build> |
359 | 358 | <plugins> |
| 359 | + <plugin> |
| 360 | + <groupId>org.sonatype.central</groupId> |
| 361 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 362 | + <inherited>false</inherited> |
| 363 | + <configuration> |
| 364 | + <publishingServerId>central</publishingServerId> |
| 365 | + </configuration> |
| 366 | + <executions> |
| 367 | + <execution> |
| 368 | + <id>publish-to-maven-central</id> |
| 369 | + <phase>deploy</phase> |
| 370 | + <goals> |
| 371 | + <goal>publish</goal> |
| 372 | + </goals> |
| 373 | + </execution> |
| 374 | + </executions> |
| 375 | + </plugin> |
| 376 | + |
360 | 377 | <plugin> |
361 | 378 | <groupId>org.apache.maven.plugins</groupId> |
362 | 379 | <artifactId>maven-gpg-plugin</artifactId> |
|
0 commit comments