Skip to content

Commit 975f06e

Browse files
committed
Update release process dependencies
1 parent 2851306 commit 975f06e

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

build.sbt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ReleaseTransformations.*
2+
import xerial.sbt.Sonatype.sonatypeCentralHost
23

34
val 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

4743
lazy 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

8885
lazy val `atlassian-jwt-api` = project

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.3.1")
22
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5")
33
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")
44
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
5-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
5+
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")

0 commit comments

Comments
 (0)