From 4bfeb7f88d7243ede273c5884d2e23821bc451b2 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Wed, 25 Feb 2015 12:31:21 -0500 Subject: [PATCH] Fixing precompiled and nightly build We noticed that -SNAPSHOT is being published as our nightly. This is because "wow" command (or ++) does not replay version injected by stamp-version. --- build.sbt | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/build.sbt b/build.sbt index 71b5b4c8f..76684c703 100644 --- a/build.sbt +++ b/build.sbt @@ -604,11 +604,12 @@ def customCommands: Seq[Setting[_]] = Seq( test.all(safeProjects).value }, commands += Command.command("release-sbt-local") { state => - "so clean" :: + "clean" :: "allPrecompiled/clean" :: "allPrecompiled/compile" :: - "so compile" :: "allPrecompiled/publishLocal" :: + "so clean" :: + "so compile" :: "so publishLocal" :: "reload" :: state @@ -631,27 +632,27 @@ def customCommands: Seq[Setting[_]] = Seq( */ commands += Command.command("release-sbt") { state => // TODO - Any sort of validation - "so clean" :: - "allPrecompiled/clean" :: - "checkCredentials" :: - "conscript-configs" :: + "checkCredentials" :: + "clean" :: + "allPrecompiled/clean" :: "allPrecompiled/compile" :: + "allPrecompiled/publishSigned" :: + "so clean" :: + "conscript-configs" :: "so compile" :: "so publishSigned" :: - "allPrecompiled/publishSigned" :: "publishLauncher" :: state }, + // stamp-version doesn't work with ++ or "so". commands += Command.command("release-nightly") { state => "stamp-version" :: - "so clean" :: + "clean" :: "allPrecompiled/clean" :: "allPrecompiled/compile" :: - "so compile" :: - "so publish" :: "allPrecompiled/publish" :: - "publishLauncher" :: + "compile" :: + "publish" :: state } ) -