Skip to content

Commit bd3dd88

Browse files
committed
chore: try publishing snapshot to central portal
1 parent 0f6973d commit bd3dd88

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

build.gradle.kts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)