Skip to content

Commit 340a1a4

Browse files
cicd: Unified publishing plugin for Sonatype Central releases and snapshots #TASK-7783
1 parent 9b4ba6c commit 340a1a4

1 file changed

Lines changed: 6 additions & 17 deletions

File tree

pom.xml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -305,16 +305,6 @@
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://central.sonatype.com/repository/maven-snapshots/</url>
313-
<snapshots>
314-
<enabled>true</enabled>
315-
</snapshots>
316-
</snapshotRepository>
317-
</distributionManagement>
318308
<profiles>
319309
<profile>
320310
<id>deploy-maven</id>
@@ -377,19 +367,18 @@
377367
<version>0.8.0</version>
378368
<extensions>true</extensions>
379369
<configuration>
380-
<!-- Must match the <server><id>ossrh</id> in your settings.xml -->
370+
<!-- Must match the <server><id>ossrh</id> in settings.xml -->
381371
<publishingServerId>ossrh</publishingServerId>
382-
<!-- Force the snapshot endpoint and authenticate there -->
383-
<centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots/</centralSnapshotsUrl>
384-
<!-- Automatically close and release staging repositories -->
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 -->
385375
<autoPublish>true</autoPublish>
386-
<!-- Wait until artifacts are actually published -->
376+
<!-- Wait until artifacts are published -->
387377
<waitUntil>published</waitUntil>
388-
<!-- Skip already published components in multimodule builds -->
378+
<!-- Skip already published modules in multimodule builds -->
389379
<ignorePublishedComponents>true</ignorePublishedComponents>
390380
</configuration>
391381
</plugin>
392-
393382
</plugins>
394383
</build>
395384
</profile>

0 commit comments

Comments
 (0)