|
4 | 4 |
|
5 | 5 | <groupId>org.scijava</groupId> |
6 | 6 | <artifactId>pom-scijava-base</artifactId> |
7 | | - <version>20.1.1-SNAPSHOT</version> |
| 7 | + <version>21.0.0-SNAPSHOT</version> |
8 | 8 | <packaging>pom</packaging> |
9 | 9 |
|
10 | 10 | <name>SciJava Base POM</name> |
|
246 | 246 | <!-- NB: Specify formatting of the maven.build.timestamp property. --> |
247 | 247 | <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ssZ</maven.build.timestamp.format> |
248 | 248 |
|
249 | | - <!-- NB: Deploy to OSS Sonatype repository by default when releasing. --> |
| 249 | + <!-- NB: Deploy to Maven Central by default when releasing. --> |
250 | 250 | <releaseProfiles>sonatype-oss-release</releaseProfiles> |
251 | | - <sonatype-oss-repository>https://s01.oss.sonatype.org</sonatype-oss-repository> |
252 | 251 |
|
253 | 252 | <!-- Let "mvn exec:java" launch the project's main class. --> |
254 | 253 | <exec.mainClass>${main-class}</exec.mainClass> |
|
307 | 306 | <dokka-maven-plugin.version>1.9.10</dokka-maven-plugin.version> <!-- org.jetbrains.jetbrains --> |
308 | 307 | <revapi-maven-plugin.version>0.15.0</revapi-maven-plugin.version> <!-- org.revapi --> |
309 | 308 | <sonar-maven-plugin.version>4.0.0.4121</sonar-maven-plugin.version> <!-- org.sonarsource.scanner.maven --> |
310 | | - <nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version> <!-- org.sonatype.plugins --> |
| 309 | + <central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version> <!-- org.sonatype.central --> |
311 | 310 |
|
312 | 311 | <!-- Plugin dependencies --> |
313 | 312 | <extra-enforcer-rules.version>1.10.0</extra-enforcer-rules.version> |
|
1564 | 1563 | <build> |
1565 | 1564 | <plugins> |
1566 | 1565 | <plugin> |
1567 | | - <groupId>org.sonatype.plugins</groupId> |
1568 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
1569 | | - <version>${nexus-staging-maven-plugin.version}</version> |
| 1566 | + <groupId>org.sonatype.central</groupId> |
| 1567 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 1568 | + <version>${central-publishing-maven-plugin.version}</version> |
1570 | 1569 | <extensions>true</extensions> |
1571 | 1570 | <configuration> |
1572 | | - <serverId>sonatype-nexus-releases</serverId> |
1573 | | - <nexusUrl>${sonatype-oss-repository}/</nexusUrl> |
1574 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
1575 | | - <stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes> |
1576 | | - <stagingProgressPauseDurationSeconds>12</stagingProgressPauseDurationSeconds> |
1577 | | - <!-- |
1578 | | - By having no explicit stagingProfileId, we use |
1579 | | - Staging V2 in "auto" mode, profile will be |
1580 | | - matched server side |
1581 | | - --> |
| 1571 | + <publishingServerId>central</publishingServerId> |
| 1572 | + <autoPublish>true</autoPublish> |
| 1573 | + <waitUntil>published</waitUntil> |
1582 | 1574 | </configuration> |
1583 | 1575 | </plugin> |
1584 | 1576 | <plugin> |
|
1604 | 1596 | </plugin> |
1605 | 1597 | </plugins> |
1606 | 1598 | </build> |
1607 | | - |
1608 | | - <repositories> |
1609 | | - <repository> |
1610 | | - <id>sonatype-nexus-snapshots</id> |
1611 | | - <name>Sonatype Nexus Snapshots</name> |
1612 | | - <url>${sonatype-oss-repository}/content/repositories/snapshots</url> |
1613 | | - <releases> |
1614 | | - <enabled>false</enabled> |
1615 | | - </releases> |
1616 | | - <snapshots> |
1617 | | - <enabled>true</enabled> |
1618 | | - </snapshots> |
1619 | | - </repository> |
1620 | | - <repository> |
1621 | | - <id>sonatype-nexus-releases</id> |
1622 | | - <name>Sonatype Nexus Releases</name> |
1623 | | - <url>${sonatype-oss-repository}/content/repositories/releases</url> |
1624 | | - <releases> |
1625 | | - <enabled>true</enabled> |
1626 | | - </releases> |
1627 | | - <snapshots> |
1628 | | - <enabled>false</enabled> |
1629 | | - </snapshots> |
1630 | | - </repository> |
1631 | | - </repositories> |
1632 | | - |
1633 | | - <distributionManagement> |
1634 | | - <snapshotRepository> |
1635 | | - <id>sonatype-nexus-snapshots</id> |
1636 | | - <name>Sonatype Nexus Snapshots</name> |
1637 | | - <url>${sonatype-oss-repository}/content/repositories/snapshots/</url> |
1638 | | - </snapshotRepository> |
1639 | | - <repository> |
1640 | | - <id>sonatype-nexus-staging</id> |
1641 | | - <name>Nexus Release Repository</name> |
1642 | | - <url>${sonatype-oss-repository}/service/local/staging/deploy/maven2/</url> |
1643 | | - </repository> |
1644 | | - </distributionManagement> |
1645 | 1599 | </profile> |
1646 | 1600 |
|
1647 | 1601 | <!-- |
|
0 commit comments