|
35 | 35 | </jboss.releases.repo.url> |
36 | 36 | <jboss.snapshots.repo.url>https://repository.jboss.org/nexus/content/repositories/snapshots/ |
37 | 37 | </jboss.snapshots.repo.url> |
38 | | - <ossrh.releases.repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2</ossrh.releases.repo.url> |
39 | | - <ossrh.snapshots.repo.url>https://oss.sonatype.org/content/repositories/snapshots</ossrh.snapshots.repo.url> |
| 38 | + <central.portal.releases.repo.url>https://central.sonatype.com/api/v1/publisher</central.portal.releases.repo.url> |
40 | 39 | </properties> |
41 | 40 |
|
42 | 41 | <dependencyManagement> |
|
96 | 95 | </executions> |
97 | 96 | </plugin> |
98 | 97 | <plugin> |
99 | | - <groupId>org.sonatype.plugins</groupId> |
100 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
101 | | - <version>${nexus.staging.plugin.version}</version> |
| 98 | + <groupId>org.sonatype.central</groupId> |
| 99 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 100 | + <version>0.7.0</version> |
102 | 101 | <extensions>true</extensions> |
103 | 102 | <configuration> |
104 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
105 | | - <serverId>sonatype-nexus-staging</serverId> |
106 | | - <stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes> |
107 | | - <!-- Automatically releases staging repo, no manual action needed --> |
108 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 103 | + <publishingServerId>central</publishingServerId> |
| 104 | + <!-- Automatically publish staged repo --> |
| 105 | + <autoPublish>true</autoPublish> |
| 106 | + <!-- The plugin will block and wait until the artifact is published --> |
| 107 | + <waitUntil>published</waitUntil> |
109 | 108 | </configuration> |
110 | 109 | </plugin> |
111 | 110 | </plugins> |
|
134 | 133 | </snapshotRepository> |
135 | 134 | </distributionManagement> |
136 | 135 | </profile> |
137 | | - <!-- OSSRH release repository - selected by default --> |
| 136 | + <!-- Sonatype Central Portal - selected by default --> |
138 | 137 | <profile> |
139 | | - <id>ossrh-release-repo</id> |
| 138 | + <id>central-portal-release-repo</id> |
140 | 139 | <activation> |
141 | 140 | <activeByDefault>false</activeByDefault> |
142 | 141 | <property> |
143 | 142 | <name>!jboss-release-repo</name> |
144 | 143 | </property> |
145 | 144 | </activation> |
146 | 145 | <distributionManagement> |
147 | | - <snapshotRepository> |
148 | | - <id>sonatype-nexus-snapshots</id> |
149 | | - <name>Sonatype Nexus Snapshots</name> |
150 | | - <url>${ossrh.snapshots.repo.url}</url> |
151 | | - </snapshotRepository> |
152 | 146 | <repository> |
153 | | - <id>sonatype-nexus-staging</id> |
154 | | - <name>Nexus Release Repository</name> |
155 | | - <url>${ossrh.releases.repo.url}</url> |
| 147 | + <id>central-portal-staging</id> |
| 148 | + <name>Central Portal Repository</name> |
| 149 | + <url>${central.portal.releases.repo.url}</url> |
156 | 150 | </repository> |
157 | 151 | </distributionManagement> |
158 | 152 | </profile> |
|
0 commit comments