1
0

simplify .sbt files

This commit is contained in:
Henry Cook 2015-07-28 15:15:34 -07:00
parent a69c749249
commit 4daa20b5fe
2 changed files with 4 additions and 8 deletions

View File

@ -6,6 +6,10 @@ name := "uncore"
scalaVersion := "2.10.2"
// Provide a managed dependency on chisel if -DchiselVersion="" is supplied on the command line.
libraryDependencies ++= (Seq("chisel").map {
dep: String => sys.props.get(dep + "Version") map { "edu.berkeley.cs" %% dep % _ }}).flatten
site.settings
site.includeScaladoc()

View File

@ -1,8 +0,0 @@
// Provide a managed dependency on chisel if -DchiselVersion="" is
// supplied on the command line.
val chiselVersion_u = System.getProperty("chiselVersion", "None")
// _u a temporary fix until sbt 13.6 https://github.com/sbt/sbt/issues/1465
libraryDependencies ++= ( if (chiselVersion_u != "None" ) ("edu.berkeley.cs" %% "chisel" % chiselVersion_u) :: Nil; else Nil)