@@ -4,7 +4,6 @@ import sbtrelease.ReleasePlugin.autoImport.ReleaseKeys.versions
4
4
import sbtrelease .ReleasePlugin .autoImport .ReleaseTransformations ._
5
5
import sbtrelease .ReleasePlugin .runtimeVersion
6
6
import scala .sys .process ._
7
- import xerial .sbt .Sonatype .sonatypeCentralHost
8
7
9
8
releaseVersionBump := sbtrelease.Version .Bump .NextStable
10
9
@@ -55,7 +54,7 @@ releaseProcess := {
55
54
commitReleaseVersion,
56
55
tagRelease,
57
56
releaseStepCommandAndRemaining(" +publishSigned" ),
58
- releaseStepCommand(" ci-release " ),
57
+ releaseStepCommand(" sonaRelease " ),
59
58
releaseStepCommand(" ci-deploy-docs" ),
60
59
setToMyNextVersion,
61
60
releaseStepCommand(" scalafmtAll" ),
@@ -65,18 +64,15 @@ releaseProcess := {
65
64
)
66
65
}
67
66
68
- // add sonatype repository settings
69
- // snapshot versions publish to sonatype snapshot repository
70
- // other versions publish to sonatype staging repository
71
- publishTo := sonatypePublishToBundle.value
72
-
73
- credentials += Credentials (" Sonatype Nexus Repository Manager" , " oss.sonatype.org" , System .getenv(" SONATYPE_USER" ), System .getenv(" SONATYPE_PASSWORD" ))
74
- credentials += Credentials (" New Sonatype Nexus Repository Manager" , " s01.oss.sonatype.org" , System .getenv(" SONATYPE_USER" ), System .getenv(" SONATYPE_PASSWORD" ))
75
-
76
67
Global / useGpgPinentry := true
77
68
78
- ThisBuild / sonatypeCredentialHost := " s01.oss.sonatype.org"
79
- sonatypeRepository := " https://s01.oss.sonatype.org/service/local"
69
+ ThisBuild / publishTo := {
70
+ val centralSnapshots = " https://central.sonatype.com/repository/maven-snapshots/"
71
+ if (isSnapshot.value) Some (" central-snapshots" .at(centralSnapshots))
72
+ else localStaging.value
73
+ }
74
+
75
+ credentials += Credentials (" central.sonatype.com" , " central.sonatype.com" , System .getenv(" SONATYPE_USER" ), System .getenv(" SONATYPE_PASSWORD" ))
80
76
81
77
packageOptions += {
82
78
Package .ManifestAttributes (
0 commit comments