File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,12 +114,22 @@ configure<org.jreleaser.gradle.plugin.JReleaserExtension> {
114114
115115 deploy {
116116 maven {
117+ mavenCentral {
118+ register(" release-deploy" ) {
119+ active.set(org.jreleaser.model.Active .RELEASE )
120+ url = " https://central.sonatype.com/api/v1/publisher"
121+ stagingRepository(" target/staging-deploy" )
122+ }
123+ }
117124 nexus2 {
118125 register(" maven-central" ) {
119- active.set(org.jreleaser.model.Active .ALWAYS )
120- url = " https://s01.oss.sonatype.org/service/local"
121- snapshotUrl = " https://s01.oss.sonatype.org/content/repositories/snapshots/"
122- stagingRepository(" build/staging-deploy" )
126+ active.set(org.jreleaser.model.Active .SNAPSHOT )
127+ snapshotUrl = " {central_snapshot_url}"
128+ applyMavenCentralRules = true
129+ snapshotSupported = true
130+ closeRepository = true
131+ releaseRepository = true
132+ stagingRepository(" target/staging-deploy" )
123133 }
124134 }
125135 }
You can’t perform that action at this time.
0 commit comments