Skip to content

Commit 7a41bc9

Browse files
committed
Upgrade sbt-sonatype, sbt-pgp
The new sbt-sonatype adds a command to publish all modules in one step (`sonatypeBundleRelease`) which should avoid getting into inconsistent states (#7190, #6922).
1 parent 32b845a commit 7a41bc9

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

.drone.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ steps:
135135
- test_java11
136136
commands:
137137
- ./project/scripts/sbt dist-bootstrapped/packArchive
138-
- ./project/scripts/sbtPublish ";dotty-bootstrapped/publishSigned ;sonatypeRelease"
138+
- ./project/scripts/sbtPublish ";dotty-bootstrapped/publishSigned ;sonatypeBundleRelease"
139139
environment:
140140
PGP_PW:
141141
from_secret: pgp_pw
@@ -177,7 +177,7 @@ steps:
177177
- test_sbt
178178
- test_java11
179179
commands:
180-
- ./project/scripts/sbtPublish ";sbt-dotty/publishSigned ;sonatypeRelease"
180+
- ./project/scripts/sbtPublish ";sbt-dotty/publishSigned ;sonatypeBundleRelease"
181181
environment:
182182
PGP_PW:
183183
from_secret: pgp_pw

project/Build.scala

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import sbt.plugins.SbtPlugin
1313
import sbt.ScriptedPlugin.autoImport._
1414
import xerial.sbt.pack.PackPlugin
1515
import xerial.sbt.pack.PackPlugin.autoImport._
16+
import xerial.sbt.Sonatype.autoImport._
1617

1718
import dotty.tools.sbtplugin.DottyPlugin.autoImport._
1819
import dotty.tools.sbtplugin.DottyPlugin.makeScalaInstance
@@ -1150,12 +1151,7 @@ object Build {
11501151
lazy val publishSettings = Seq(
11511152
publishMavenStyle := true,
11521153
isSnapshot := version.value.contains("SNAPSHOT"),
1153-
publishTo := Some(
1154-
if (isSnapshot.value)
1155-
Opts.resolver.sonatypeSnapshots
1156-
else
1157-
Opts.resolver.sonatypeStaging
1158-
),
1154+
publishTo := sonatypePublishToBundle.value,
11591155
publishArtifact in Test := false,
11601156
homepage := Some(url(dottyGithubUrl)),
11611157
licenses += ("BSD New",

project/plugins.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.0.0-M8")
66

7-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.1")
7+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.6")
88

9-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")
9+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.0-M2")
1010

1111
addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.10.1")
1212

0 commit comments

Comments
 (0)