|
79 | 79 | <exec.mainClass>none</exec.mainClass> |
80 | 80 | </properties> |
81 | 81 |
|
82 | | - <distributionManagement> |
83 | | - <snapshotRepository> |
84 | | - <id>ossrh</id> |
85 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
86 | | - </snapshotRepository> |
87 | | - <repository> |
88 | | - <id>ossrh</id> |
89 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
90 | | - </repository> |
91 | | - </distributionManagement> |
92 | | - |
93 | 82 | <dependencyManagement> |
94 | 83 | <dependencies> |
95 | 84 | <dependency> |
|
243 | 232 | </executions> |
244 | 233 | </plugin> |
245 | 234 | <plugin> |
246 | | - <groupId>org.sonatype.plugins</groupId> |
247 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
248 | | - <version>1.7.0</version> |
| 235 | + <groupId>org.sonatype.central</groupId> |
| 236 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 237 | + <version>0.7.0</version> |
249 | 238 | <extensions>true</extensions> |
250 | 239 | <configuration> |
251 | | - <serverId>ossrh</serverId> |
252 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
253 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 240 | + <autoPublish>true</autoPublish> |
| 241 | + <waitUntil>published</waitUntil> |
254 | 242 | </configuration> |
255 | 243 | </plugin> |
256 | 244 | <plugin> |
|
276 | 264 | </configuration> |
277 | 265 | </plugin> |
278 | 266 | <plugin> |
279 | | - <groupId>org.sonatype.plugins</groupId> |
280 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
| 267 | + <groupId>org.sonatype.central</groupId> |
| 268 | + <artifactId>central-publishing-maven-plugin</artifactId> |
281 | 269 | <!-- Publish parent (for now) but not all submodules. |
282 | 270 | A submodule opts in to publication by including |
283 | | - `nexus-staging-maven-plugin` in its `plugins` section. |
| 271 | + `central-publishing-maven-plugin` in its `plugins` section. |
284 | 272 | See https://stackoverflow.com/a/78782937/611819 --> |
285 | 273 | <inherited>false</inherited> |
286 | 274 | </plugin> |
|
0 commit comments