Skip to content

Commit

Permalink
Update release configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Jan 12, 2018
1 parent da2e37e commit 46d737d
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ lazy val root = (project in file("."))
homepage := Some(url("https://github.com/thoughtbot/monocats")),
name := "monocats",
organization := "com.thoughtbot",
pomIncludeRepository := { _ => false },
publishMavenStyle := true,
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")
},
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
),
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
scmInfo := Some(
ScmInfo(
url("https://github.com/thoughtbot/monocats"),
Expand All @@ -51,11 +50,10 @@ lazy val root = (project in file("."))
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommand("sonatypeOpen \"com.thoughtbot\" \"monocats\""),
releaseStepCommand("publishSigned"),
publishArtifacts,
releaseStepCommand("sonatypeRelease"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeRelease"),
pushChanges
),

Expand Down

0 comments on commit 46d737d

Please sign in to comment.