-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
56 lines (45 loc) · 1.33 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
49
50
51
52
53
54
55
56
val dottyVersion = "0.21.0-RC1"
// val dottyVersion = dottyLatestNightlyBuild.get
lazy val commonSettings = Seq(
scalaVersion := dottyVersion,
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test"
)
lazy val mesa = project
.settings(
name := "mesa-core",
version := Common.mesaVersion,
compileOrder := CompileOrder.JavaThenScala,
libraryDependencies += ("com.lihaoyi" %% "pprint" % "0.5.5").withDottyCompat(scalaVersion.value),
libraryDependencies += "org.scala-lang" % "scala-reflect" % "2.13.0",
libraryDependencies ++= Seq(
"org.antlr" % "antlr4-runtime" % "4.7.2",
"org.antlr" % "stringtemplate" % "4.0.2"
),
commonSettings,
)
.dependsOn(util)
lazy val `eec-core` = project
.settings(
name := "mesa-eec",
version := Common.mesaVersion,
libraryDependencies += ("org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2").withDottyCompat(scalaVersion.value),
commonSettings,
)
.dependsOn(util)
lazy val util = project
.settings(
name := "mesa-util",
version := Common.mesaVersion,
commonSettings,
)
lazy val loadMesa = { s: State =>
"project mesa" :: s
}
lazy val root = project.in(file("."))
.settings(
commonSettings,
onLoad in Global := {
val old = (onLoad in Global).value
loadMesa compose old
}
)