11import ReleaseTransformations .*
2+ import xerial .sbt .Sonatype .sonatypeCentralHost
23
34val commonSettings = Seq (
45 organization := " io.toolsplus" ,
@@ -20,13 +21,8 @@ lazy val publishSettings = Seq(
2021 pomIncludeRepository := { _ =>
2122 false
2223 },
23- publishTo := {
24- val nexus = " https://oss.sonatype.org/"
25- if (isSnapshot.value)
26- Some (" snapshots" at nexus + " content/repositories/snapshots" )
27- else
28- Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
29- },
24+ ThisBuild / publishTo := sonatypePublishToBundle.value,
25+ ThisBuild / sonatypeCredentialHost := sonatypeCentralHost,
3026 autoAPIMappings := true ,
3127 scmInfo := Some (
3228 ScmInfo (
@@ -45,6 +41,7 @@ lazy val publishSettings = Seq(
4541)
4642
4743lazy val noPublishSettings = Seq (
44+ publish / skip := true ,
4845 publish := {},
4946 publishLocal := {},
5047 publishArtifact := false ,
@@ -62,9 +59,9 @@ releaseProcess := Seq[ReleaseStep](
6259 commitReleaseVersion,
6360 tagRelease,
6461 releaseStepCommand(" publishSigned" ),
62+ releaseStepCommand(" sonatypeBundleRelease" ),
6563 setNextVersion,
6664 commitNextVersion,
67- releaseStepCommand(" sonatypeReleaseAll" ),
6865 pushChanges
6966)
7067
@@ -82,7 +79,7 @@ lazy val `atlassian-jwt` = project
8279 `atlassian-jwt-generators`,
8380 `atlassian-jwt-core`
8481 )
85- .settings(commonSettings * )
82+ .settings(commonSettings)
8683 .settings(noPublishSettings)
8784
8885lazy val `atlassian-jwt-api` = project
0 commit comments