Skip to content

Commit

Permalink
Try to make publishing not fail if there is a bad artifact staged
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuroshii committed Jun 5, 2018
1 parent 09261ad commit 8b1d967
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bin/checkPublish
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ echo Found branch $BRANCH
if [ $BRANCH == 'master' ]
then
echo Publishing to Sonatype
sbt publishSigned sonatypeReleaseAll
sbt 'sonatypeOpen "Forklift Release via Travis"' publishSigned sonatypeRelease
fi
11 changes: 4 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ lazy val baseSettings = Seq(
"Fuse" at "http:https://repo.fusesource.com/nexus/content/groups/public",
"Confluent Maven Repo" at "http:https://packages.confluent.io/maven/"
),
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishMavenStyle := true,
credentials += Credentials(
"Sonatype Nexus Repository Manager",
Expand Down Expand Up @@ -64,6 +57,10 @@ lazy val baseSettings = Seq(
</developers>)
)

// publishTo needs to be inherited from the value of sonatypePublishTo set on the root
// by 'sonatypeOpen' and similar commands
publishTo in ThisBuild := sonatypePublishTo.value

lazy val core = project in file("core") settings baseSettings
lazy val replay = project.dependsOn(core) in file("plugins/replay") settings baseSettings
lazy val retry = project.dependsOn(core) in file("plugins/retry") settings baseSettings
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.0.0-M4")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.13.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")
addSbtPlugin("com.cavorite" % "sbt-avro-1-7" % "1.1.2")

0 comments on commit 8b1d967

Please sign in to comment.