Skip to content

Commit f31ebc6

Browse files
cicd: Unified publishing plugin using distribution management for Sonatype Central releases and snapshots #TASK-7783
1 parent 340a1a4 commit f31ebc6

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

pom.xml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,16 @@
305305
</plugin>
306306
</plugins>
307307
</build>
308+
<distributionManagement>
309+
<!-- Only for SNAPSHOTs: the plugin will use this when your version ends with -SNAPSHOT -->
310+
<snapshotRepository>
311+
<id>ossrh</id>
312+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
313+
<snapshots>
314+
<enabled>true</enabled>
315+
</snapshots>
316+
</snapshotRepository>
317+
</distributionManagement>
308318
<profiles>
309319
<profile>
310320
<id>deploy-maven</id>
@@ -367,18 +377,17 @@
367377
<version>0.8.0</version>
368378
<extensions>true</extensions>
369379
<configuration>
370-
<!-- Must match the <server><id>ossrh</id> in settings.xml -->
380+
<!-- Must match the <server><id>ossrh</id> in your settings.xml -->
371381
<publishingServerId>ossrh</publishingServerId>
372-
<!-- OSSRH compatibility endpoint for SNAPSHOT uploads -->
373-
<centralSnapshotsUrl>https://s01.oss.sonatype.org/content/repositories/snapshots/</centralSnapshotsUrl>
374-
<!-- Automatically close and release staging repositories for releases -->
382+
<!-- Automatically close and release staging repositories -->
375383
<autoPublish>true</autoPublish>
376-
<!-- Wait until artifacts are published -->
384+
<!-- Wait until artifacts are actually published -->
377385
<waitUntil>published</waitUntil>
378-
<!-- Skip already published modules in multimodule builds -->
386+
<!-- Skip already published components in multimodule builds -->
379387
<ignorePublishedComponents>true</ignorePublishedComponents>
380388
</configuration>
381389
</plugin>
390+
382391
</plugins>
383392
</build>
384393
</profile>

0 commit comments

Comments
 (0)