-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.sbt
42 lines (36 loc) · 1.14 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
import BNFC._
lazy val commonOptions = Seq(
"-language:existentials",
"-language:higherKinds",
// "-Xfatal-warnings",
"-Xfuture",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-unused-import",
"-Ywarn-value-discard",
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked")
lazy val consoleOptions = commonOptions diff Seq("-Ywarn-unused-import")
lazy val commonSettings = Seq(
name := "rholang",
organization := "coop.rchain",
scalaVersion := "2.11.8",
crossScalaVersions := Seq("2.10.6", scalaVersion.value),
scalacOptions := commonOptions,
scalacOptions in (Compile, console) := consoleOptions,
scalacOptions in (Test, console) := consoleOptions)
lazy val root = (project in file("."))
.settings(commonSettings: _*)
.settings(bnfcSettings: _*)
// Scalaz
libraryDependencies += "org.scalaz" %% "scalaz-core" % "7.2.4"
// Flex & Cup
libraryDependencies += "cup" % "java-cup-11a" % "local"
libraryDependencies += "jlex" % "JLex-local" % "local"
// Kind projector
resolvers += Resolver.sonatypeRepo("releases")
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.8.0")