Use environment variable thanks to lame sbt jenkins plugin

This commit is contained in:
Josh Suereth 2012-09-07 13:52:05 -04:00
parent 872d88ea23
commit 5407a21803
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ object SbtExtras extends Build {
// This build creates a SBT plugin with handy features *and* bundles the SBT script for distribution.
val root = Project("sbt-packaging", file(".")) settings(Packaging.settings:_*) settings(
sbtVersion <<= sbtVersion apply { v =>
sys.props.getOrElse("sbt.build.version", v)
sys.props.getOrElse("sbt.build.version", sys.env.getOrElse("sbt.build.version", v))
}
)