|
42 | 42 | <maven-project-info-reports.version>3.9.0</maven-project-info-reports.version> |
43 | 43 | <maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version> |
44 | 44 | <maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version> |
| 45 | + <central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version> |
| 46 | + <maven-source-plugin.version>3.3.1</maven-source-plugin.version> |
| 47 | + <maven-jxr-plugin.version>3.6.0</maven-jxr-plugin.version> |
45 | 48 |
|
46 | 49 | <!-- Java version --> |
47 | 50 | <java.version>8</java.version> |
|
241 | 244 | <artifactId>maven-release-plugin</artifactId> |
242 | 245 | <version>${maven-release-plugin.version}</version> |
243 | 246 | <configuration> |
244 | | - <releaseProfiles>sonatype-oss-release</releaseProfiles> |
245 | | - <useReleaseProfile>true</useReleaseProfile> |
| 247 | + <autoVersionSubmodules>true</autoVersionSubmodules> |
| 248 | + <useReleaseProfile>false</useReleaseProfile> |
| 249 | + <releaseProfiles>release</releaseProfiles> |
| 250 | + <goals>deploy</goals> |
246 | 251 | </configuration> |
247 | 252 | </plugin> |
248 | 253 | <plugin> |
|
420 | 425 | <groupId>org.apache.maven.plugins</groupId> |
421 | 426 | <artifactId>maven-javadoc-plugin</artifactId> |
422 | 427 | <version>${maven-javadoc-plugin.version}</version> |
423 | | - <executions> |
424 | | - <execution> |
425 | | - <id>attach-javadocs</id> |
426 | | - <goals> |
427 | | - <goal>jar</goal> |
428 | | - </goals> |
429 | | - </execution> |
430 | | - </executions> |
431 | 428 | <configuration> |
| 429 | + <additionalOptions>-Xdoclint:none</additionalOptions> |
432 | 430 | <source>${java.version}</source> |
433 | 431 | </configuration> |
434 | 432 | </plugin> |
| 433 | + <plugin> |
| 434 | + <groupId>org.apache.maven.plugins</groupId> |
| 435 | + <artifactId>maven-jxr-plugin</artifactId> |
| 436 | + <version>${maven-jxr-plugin.version}</version> |
| 437 | + </plugin> |
435 | 438 | </plugins> |
436 | 439 | </build> |
437 | 440 |
|
438 | 441 | <distributionManagement> |
439 | 442 | <snapshotRepository> |
440 | | - <id>sonatype-nexus-snapshots</id> |
441 | | - <name>Sonatype Nexus snapshot repository</name> |
442 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 443 | + <id>central</id> |
| 444 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
443 | 445 | </snapshotRepository> |
444 | 446 | <repository> |
445 | | - <id>sonatype-nexus-staging</id> |
446 | | - <name>Sonatype Nexus release repository</name> |
447 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 447 | + <id>central</id> |
| 448 | + <url>https://central.sonatype.com</url> |
448 | 449 | </repository> |
449 | 450 | </distributionManagement> |
450 | 451 |
|
| 452 | + <repositories> |
| 453 | + <repository> |
| 454 | + <id>central-portal-snapshots</id> |
| 455 | + <name>Central Portal Snapshots</name> |
| 456 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 457 | + <releases> |
| 458 | + <enabled>false</enabled> |
| 459 | + </releases> |
| 460 | + <snapshots> |
| 461 | + <enabled>true</enabled> |
| 462 | + </snapshots> |
| 463 | + </repository> |
| 464 | + </repositories> |
| 465 | + |
| 466 | + <reporting> |
| 467 | + <plugins> |
| 468 | + <plugin> |
| 469 | + <groupId>org.apache.maven.plugins</groupId> |
| 470 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 471 | + <version>${maven-javadoc-plugin.version}</version> |
| 472 | + <configuration> |
| 473 | + <additionalOptions>-Xdoclint:none</additionalOptions> |
| 474 | + </configuration> |
| 475 | + </plugin> |
| 476 | + <plugin> |
| 477 | + <groupId>org.apache.maven.plugins</groupId> |
| 478 | + <artifactId>maven-jxr-plugin</artifactId> |
| 479 | + <version>${maven-jxr-plugin.version}</version> |
| 480 | + </plugin> |
| 481 | + </plugins> |
| 482 | + </reporting> |
| 483 | + |
451 | 484 | <profiles> |
452 | 485 | <profile> |
453 | | - <id>release-sign-artifacts</id> |
454 | | - <activation> |
455 | | - <property> |
456 | | - <name>performRelease</name> |
457 | | - <value>true</value> |
458 | | - </property> |
459 | | - </activation> |
| 486 | + <id>release</id> |
460 | 487 | <build> |
461 | 488 | <plugins> |
| 489 | + <plugin> |
| 490 | + <groupId>org.sonatype.central</groupId> |
| 491 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 492 | + <version>${central-publishing-maven-plugin.version}</version> |
| 493 | + <extensions>true</extensions> |
| 494 | + <configuration> |
| 495 | + <publishingServerId>central</publishingServerId> |
| 496 | + <autoPublish>true</autoPublish> |
| 497 | + <waitUntil>published</waitUntil> |
| 498 | + </configuration> |
| 499 | + </plugin> |
| 500 | + |
462 | 501 | <plugin> |
463 | 502 | <groupId>org.apache.maven.plugins</groupId> |
464 | | - <artifactId>maven-gpg-plugin</artifactId> |
465 | | - <version>${maven-gpg-plugin.version}</version> |
| 503 | + <artifactId>maven-source-plugin</artifactId> |
| 504 | + <version>${maven-source-plugin.version}</version> |
| 505 | + <executions> |
| 506 | + <execution> |
| 507 | + <id>attach-sources</id> |
| 508 | + <goals> |
| 509 | + <goal>jar-no-fork</goal> |
| 510 | + </goals> |
| 511 | + </execution> |
| 512 | + </executions> |
| 513 | + </plugin> |
| 514 | + |
| 515 | + <plugin> |
| 516 | + <groupId>org.apache.maven.plugins</groupId> |
| 517 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 518 | + <version>${maven-javadoc-plugin.version}</version> |
466 | 519 | <configuration> |
467 | | - <passphrase>${gpg.passphrase}</passphrase> |
| 520 | + <additionalOptions>-Xdoclint:none</additionalOptions> |
468 | 521 | </configuration> |
| 522 | + <executions> |
| 523 | + <execution> |
| 524 | + <id>attach-javadocs</id> |
| 525 | + <goals> |
| 526 | + <goal>jar</goal> |
| 527 | + </goals> |
| 528 | + </execution> |
| 529 | + </executions> |
| 530 | + </plugin> |
| 531 | + |
| 532 | + <plugin> |
| 533 | + <groupId>org.apache.maven.plugins</groupId> |
| 534 | + <artifactId>maven-gpg-plugin</artifactId> |
| 535 | + <version>${maven-gpg-plugin.version}</version> |
469 | 536 | <executions> |
470 | 537 | <execution> |
471 | 538 | <id>sign-artifacts</id> |
|
0 commit comments