|
199 | 199 | </executions> |
200 | 200 | </plugin> |
201 | 201 | <plugin> |
202 | | - <groupId>org.sonatype.plugins</groupId> |
203 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
204 | | - <version>1.6.7</version> |
| 202 | + <groupId>org.sonatype.central</groupId> |
| 203 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 204 | + <version>0.7.0</version> |
205 | 205 | <extensions>true</extensions> |
206 | 206 | <configuration> |
207 | | - <serverId>aws-swf</serverId> |
208 | | - <nexusUrl>https://aws.oss.sonatype.org/</nexusUrl> |
209 | | - <autoReleaseAfterClose>false</autoReleaseAfterClose> |
| 207 | + <publishingServerId>central</publishingServerId> |
| 208 | + <autoPublish>false</autoPublish> |
210 | 209 | </configuration> |
211 | 210 | </plugin> |
212 | 211 | </plugins> |
213 | 212 | </build> |
214 | 213 |
|
215 | 214 | <distributionManagement> |
216 | 215 | <snapshotRepository> |
217 | | - <id>aws-swf</id> |
218 | | - <url>https://aws.oss.sonatype.org/content/repositories/snapshots</url> |
| 216 | + <id>central</id> |
| 217 | + <url>https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots</url> |
219 | 218 | </snapshotRepository> |
220 | 219 | <repository> |
221 | | - <id>aws-swf</id> |
222 | | - <url>https://aws.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 220 | + <id>central</id> |
| 221 | + <url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url> |
223 | 222 | </repository> |
224 | | - |
225 | 223 | </distributionManagement> |
| 224 | + |
| 225 | + <profiles> |
| 226 | + <profile> |
| 227 | + <id>publishing</id> |
| 228 | + <build> |
| 229 | + <plugins> |
| 230 | + <plugin> |
| 231 | + <groupId>org.apache.maven.plugins</groupId> |
| 232 | + <artifactId>maven-gpg-plugin</artifactId> |
| 233 | + <version>1.5</version> |
| 234 | + <executions> |
| 235 | + <execution> |
| 236 | + <id>sign-artifacts</id> |
| 237 | + <phase>verify</phase> |
| 238 | + <goals> |
| 239 | + <goal>sign</goal> |
| 240 | + </goals> |
| 241 | + </execution> |
| 242 | + </executions> |
| 243 | + </plugin> |
| 244 | + <plugin> |
| 245 | + <groupId>org.sonatype.central</groupId> |
| 246 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 247 | + <version>0.7.0</version> |
| 248 | + <extensions>true</extensions> |
| 249 | + <configuration> |
| 250 | + <publishingServerId>central</publishingServerId> |
| 251 | + <autoPublish>false</autoPublish> |
| 252 | + </configuration> |
| 253 | + </plugin> |
| 254 | + </plugins> |
| 255 | + </build> |
| 256 | + </profile> |
| 257 | + </profiles> |
226 | 258 | </project> |
0 commit comments