Skip to content

Commit 197b6b8

Browse files
committed
Update deployment instructions
1 parent acbce88 commit 197b6b8

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

docs/modules/examples/pages/maven/maven-central.adoc

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,14 @@ The following `pom.xml` file shows the minimum required configuration
591591
</signing>
592592
<deploy>
593593
<maven>
594+
<mavenCentral>
595+
<sonatype>
596+
<active>ALWAYS</active>
597+
<url>{central_url}</url>
598+
<stagingRepositories>target/staging-deploy</stagingRepositories>
599+
</sonatype>
600+
</mavenCentral>
601+
<!-- Legacy OSSRH
594602
<nexus2>
595603
<maven-central>
596604
<active>ALWAYS</active>
@@ -601,14 +609,6 @@ The following `pom.xml` file shows the minimum required configuration
601609
<stagingRepositories>target/staging-deploy</stagingRepositories>
602610
</maven-central>
603611
</nexus2>
604-
<!-- Portal Publisher API
605-
<mavenCentral>
606-
<sonatype>
607-
<active>ALWAYS</active>
608-
<url>{central_url}</url>
609-
<stagingRepositories>target/staging-deploy</stagingRepositories>
610-
</sonatype>
611-
</mavenCentral>
612612
-->
613613
</maven>
614614
</deploy>
@@ -744,7 +744,7 @@ $ mvn -Ppublication
744744

745745
[source]
746746
----
747-
$ mvn jreleaser:full-release
747+
$ mvn jreleaser:deploy
748748
----
749749

750750
== Gradle
@@ -814,6 +814,14 @@ jreleaser {
814814
}
815815
deploy {
816816
maven {
817+
mavenCentral {
818+
sonatype {
819+
active = 'ALWAYS'
820+
url = '{central_url}'
821+
stagingRepository('build/staging-deploy')
822+
}
823+
}
824+
/* Legacy OSSRH
817825
nexus2 {
818826
'maven-central' {
819827
active = 'ALWAYS'
@@ -824,14 +832,6 @@ jreleaser {
824832
stagingRepository('build/staging-deploy')
825833
}
826834
}
827-
/* Portal Publisher API
828-
mavenCentral {
829-
sonatype {
830-
active = 'ALWAYS'
831-
url = '{central_url}'
832-
stagingRepository('build/staging-deploy')
833-
}
834-
}
835835
*/
836836
}
837837
}
@@ -919,5 +919,5 @@ $ ./gradlew publish
919919

920920
[source]
921921
----
922-
$ ./gradlew jreleaserFullRelease
922+
$ ./gradlew jreleaserDeploy
923923
----

0 commit comments

Comments
 (0)