|
58 | 58 | </distributionManagement> |
59 | 59 | </profile> |
60 | 60 |
|
61 | | - <!-- Profile for deploying and releasing to Maven Central through OSSRH --> |
| 61 | + <!-- Profile for deploying and releasing to Maven Central through Central Portal --> |
62 | 62 | <profile> |
63 | | - <id>ossrh</id> |
64 | | - <distributionManagement> |
65 | | - <snapshotRepository> |
66 | | - <id>ossrh</id> |
67 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
68 | | - </snapshotRepository> |
69 | | - <repository> |
70 | | - <id>ossrh</id> |
71 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
72 | | - </repository> |
73 | | - </distributionManagement> |
74 | | - |
| 63 | + <id>central-portal</id> |
75 | 64 | <build> |
76 | 65 | <plugins> |
77 | 66 | <plugin> |
78 | | - <groupId>org.sonatype.plugins</groupId> |
79 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
80 | | - <version>1.6.7</version> |
| 67 | + <groupId>org.sonatype.central</groupId> |
| 68 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 69 | + <version>0.7.0</version> |
81 | 70 | <extensions>true</extensions> |
82 | 71 | <configuration> |
83 | | - <serverId>ossrh</serverId> |
84 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
85 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 72 | + <publishingServerId>central</publishingServerId> |
| 73 | + <autoPublish>true</autoPublish> |
86 | 74 | </configuration> |
87 | 75 | </plugin> |
88 | 76 | <plugin> |
89 | 77 | <groupId>org.apache.maven.plugins</groupId> |
90 | 78 | <artifactId>maven-source-plugin</artifactId> |
91 | | - <version>2.2.1</version> |
| 79 | + <version>3.2.1</version> |
92 | 80 | <executions> |
93 | 81 | <execution> |
94 | 82 | <id>attach-sources</id> |
|
101 | 89 | <plugin> |
102 | 90 | <groupId>org.apache.maven.plugins</groupId> |
103 | 91 | <artifactId>maven-javadoc-plugin</artifactId> |
104 | | - <version>2.9.1</version> |
| 92 | + <version>3.4.0</version> |
105 | 93 | <executions> |
106 | 94 | <execution> |
107 | 95 | <id>attach-javadocs</id> |
|
295 | 283 | <plugin> |
296 | 284 | <groupId>org.apache.maven.plugins</groupId> |
297 | 285 | <artifactId>maven-release-plugin</artifactId> |
298 | | - <version>2.5.3</version> |
| 286 | + <version>3.1.1</version> |
299 | 287 | <configuration> |
300 | 288 | <autoVersionSubmodules>true</autoVersionSubmodules> |
301 | 289 | <useReleaseProfile>false</useReleaseProfile> |
302 | | - <releaseProfiles>ossrh,sign</releaseProfiles> |
| 290 | + <releaseProfiles>central-portal,sign</releaseProfiles> |
303 | 291 | <goals>deploy</goals> |
304 | 292 | <tagNameFormat>v@{project.version}</tagNameFormat> |
305 | 293 | </configuration> |
|
0 commit comments