Skip to content

Commit 38a4bb0

Browse files
committed
Fix signing of packages during release
1 parent 3a775df commit 38a4bb0

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

build.sbt

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
val javaVersion = "1.8"
22

3+
import sbtrelease.ReleasePlugin.autoImport._
4+
35
inThisBuild(
46
Seq(
57
organization := "software.purpledragon.xml",
@@ -26,25 +28,22 @@ inThisBuild(
2628
),
2729
))
2830

31+
lazy val commonSettings = Seq(
32+
releasePublishArtifactsAction := PgpKeys.publishLocalSigned.value,
33+
previewSite := {},
34+
previewAuto := {},
35+
)
36+
2937
lazy val xmlCompare = Project("xml-compare", file("xml-compare"))
30-
.settings(
31-
previewSite := {},
32-
previewAuto := {}
33-
)
38+
.settings(commonSettings)
3439

3540
lazy val xmlScalatest = Project("xml-scalatest", file("xml-scalatest"))
3641
.dependsOn(xmlCompare)
37-
.settings(
38-
previewSite := {},
39-
previewAuto := {}
40-
)
42+
.settings(commonSettings)
4143

4244
lazy val xmlSpecs2 = Project("xml-specs2", file("xml-specs2"))
4345
.dependsOn(xmlCompare)
44-
.settings(
45-
previewSite := {},
46-
previewAuto := {}
47-
)
46+
.settings(commonSettings)
4847

4948
import ReleaseTransformations._
5049
lazy val root = Project("scala-xml-compare", file("."))
@@ -70,7 +69,6 @@ lazy val root = Project("scala-xml-compare", file("."))
7069
),
7170
// sbt-release settings
7271
releaseCrossBuild := true,
73-
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
7472
releaseProcess := Seq[ReleaseStep](
7573
checkSnapshotDependencies,
7674
inquireVersions,

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.0.0")
66

77
// artifact publishing
88
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.4")
9-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2-1")
9+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.0")
1010
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.11")
1111

1212
// documentation

version.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version in ThisBuild := "1.0.3"
1+
version in ThisBuild := "1.0.4-SNAPSHOT"

0 commit comments

Comments
 (0)