|
92 | 92 | <!-- plugin.version>0.0.0</plugin.version --> |
93 | 93 | <maven-enforcer-plugin.version>3.0.0</maven-enforcer-plugin.version> |
94 | 94 | <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version> |
95 | | - <nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version> |
| 95 | + <central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version> |
96 | 96 | <maven-source-plugin.version>3.2.1</maven-source-plugin.version> |
97 | 97 | <maven-site-plugin.version>3.11.0</maven-site-plugin.version> |
98 | 98 | <maven-javadoc-plugin.version>3.3.2</maven-javadoc-plugin.version> |
|
190 | 190 | </configuration> |
191 | 191 | </plugin> |
192 | 192 | <plugin> |
193 | | - <groupId>org.sonatype.plugins</groupId> |
194 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
195 | | - <version>${nexus-staging-maven-plugin.version}</version> |
| 193 | + <groupId>org.sonatype.central</groupId> |
| 194 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 195 | + <version>${central-publishing-maven-plugin.version}</version> |
196 | 196 | </plugin> |
197 | 197 | <plugin> |
198 | 198 | <groupId>org.apache.maven.plugins</groupId> |
|
473 | 473 | </dependencies> |
474 | 474 | </dependencyManagement> |
475 | 475 |
|
476 | | - <distributionManagement> |
477 | | - <snapshotRepository> |
478 | | - <id>nlic-snapshots</id> |
479 | | - <url>${repo.snapshots.url}</url> |
480 | | - </snapshotRepository> |
481 | | - <repository> |
482 | | - <id>nlic-releases</id> |
483 | | - <url>${repo.releases.url}</url> |
484 | | - </repository> |
485 | | - </distributionManagement> |
486 | | - |
487 | 476 | <profiles> |
488 | 477 | <profile> |
489 | 478 | <id>java17</id> |
490 | 479 | <properties> |
491 | 480 | <java.version>17</java.version> |
492 | 481 | </properties> |
493 | 482 | </profile> |
| 483 | + <profile> |
| 484 | + <id>develop</id> |
| 485 | + <distributionManagement> |
| 486 | + <snapshotRepository> |
| 487 | + <id>nlic-snapshots</id> |
| 488 | + <url>${repo.snapshots.url}</url> |
| 489 | + </snapshotRepository> |
| 490 | + <repository> |
| 491 | + <id>nlic-releases</id> |
| 492 | + <url>${repo.releases.url}</url> |
| 493 | + </repository> |
| 494 | + </distributionManagement> |
| 495 | + </profile> |
494 | 496 | <profile> |
495 | 497 | <id>release</id> |
496 | 498 | <build> |
|
504 | 506 | <artifactId>maven-javadoc-plugin</artifactId> |
505 | 507 | </plugin> |
506 | 508 | <plugin> |
507 | | - <artifactId>maven-gpg-plugin</artifactId> |
508 | | - <executions> |
509 | | - <execution> |
510 | | - <id>sign-artifacts</id> |
511 | | - <phase>verify</phase> |
512 | | - <goals> |
513 | | - <goal>sign</goal> |
514 | | - </goals> |
515 | | - <configuration> |
516 | | - <!-- This is necessary for gpg to not try to use the pinentry programs --> |
517 | | - <gpgArguments> |
518 | | - <arg>--pinentry-mode</arg> |
519 | | - <arg>loopback</arg> |
520 | | - </gpgArguments> |
521 | | - </configuration> |
522 | | - </execution> |
523 | | - </executions> |
524 | | - </plugin> |
525 | | - <plugin> |
526 | | - <groupId>org.sonatype.plugins</groupId> |
527 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
| 509 | + <groupId>org.sonatype.central</groupId> |
| 510 | + <artifactId>central-publishing-maven-plugin</artifactId> |
528 | 511 | <extensions>true</extensions> |
529 | 512 | <configuration> |
530 | | - <serverId>ossrh</serverId> |
531 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
532 | | - <autoReleaseAfterClose>false</autoReleaseAfterClose> |
| 513 | + <publishingServerId>ossrh</publishingServerId> |
533 | 514 | </configuration> |
534 | 515 | </plugin> |
535 | 516 | </plugins> |
536 | 517 | </build> |
537 | | - <distributionManagement> |
538 | | - <snapshotRepository> |
539 | | - <id>ossrh</id> |
540 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
541 | | - </snapshotRepository> |
542 | | - <repository> |
543 | | - <id>ossrh</id> |
544 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
545 | | - </repository> |
546 | | - </distributionManagement> |
547 | 518 | </profile> |
548 | 519 | </profiles> |
549 | 520 |
|
|
0 commit comments