Skip to content

Commit

Permalink
sbt: Force clean before packaging (sbt#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickynils committed Mar 13, 2017
1 parent b24a9ab commit 3293819
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ lazy val sharedSettings = MimaSettings.settings ++ scalaVersionSettings ++ Seq(

publishMavenStyle := true,

// Force clean before packaging.
// https://github.com/rickynils/scalacheck/issues/318
packageBin in compile := {
clean.value
(packageBin in compile).value
},

// Travis should only publish snapshots
publishArtifact := !(isRelease && travisCommit.isDefined),

Expand Down

0 comments on commit 3293819

Please sign in to comment.