Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to make publishing not fail if there is a bad artifact staged #151

Merged
merged 1 commit into from
Jun 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")