-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
48 lines (39 loc) · 1.18 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// See README.md for license details.
val org = "edu.berkeley.cs"
name := "twerk"
version := "3.1.7"
scalaVersion := "2.12.8"
maxErrors := 5
updateOptions := updateOptions.value.withLatestSnapshots(false)
resolvers ++= Seq(
Resolver.mavenLocal,
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases")
)
// Provide a managed dependency on X if -DXVersion="" is supplied on the command line.
val defaultVersions = Map(
"firrtl" -> "1.2-SNAPSHOT",
"chisel3" -> "3.2-SNAPSHOT",
"treadle" -> "1.1-SNAPSHOT",
"chisel-iotesters" -> "1.3-SNAPSHOT",
"chisel-testers2" -> "0.1-SNAPSHOT"
)
libraryDependencies ++= Seq("firrtl", "chisel3", "treadle", "chisel-iotesters", "chisel-testers2").map {
dep: String => org %% dep % sys.props.getOrElse(dep + "Version", defaultVersions(dep)) }
// Linear aglebra
libraryDependencies ++= Seq (
"org.la4j" % "la4j" % "0.6.0",
"org.scalaz" %% "scalaz-zio" % "1.0-RC4",
)
scalacOptions ++= Seq (
"-deprecation",
"-feature",
"-unchecked",
"-Xsource:2.11",
"-language:reflectiveCalls",
"-Ypartial-unification",
"-Xfatal-warnings",
)
// Lint
scapegoatVersion in ThisBuild := "1.3.8"
scalaBinaryVersion in ThisBuild := "2.12"