-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
50 lines (44 loc) · 1.92 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
ThisBuild / version := "0.1.0"
ThisBuild / scalaVersion := "2.13.3"
ThisBuild / organization := "ca.uwaterloo.watform"
lazy val root = (project in file("."))
.aggregate(fortress, fortressDebug)
lazy val fortress = (project in file("cli"))
.aggregate(fortressCore)
.dependsOn(fortressCore)
.enablePlugins(JavaAppPackaging) // Sbt native packaging for creating zip file
.settings(
name := "Fortress",
// Dependencies
libraryDependencies += "org.rogach" %% "scallop" % "3.5.1" // Command line tools
)
lazy val fortressDebug = (project in file("debug"))
.aggregate(fortressCore)
.dependsOn(fortressCore)
.enablePlugins(JavaAppPackaging) // Sbt native packaging for creating zip file
.settings(
name := "FortressDebug",
// Dependencies
libraryDependencies += "org.rogach" %% "scallop" % "3.5.1" // Command line tools
)
lazy val fortressCore = (project in file("core"))
.enablePlugins(JavaAppPackaging) // Sbt native packaging for creating zip file
.enablePlugins(Antlr4Plugin)
.settings(
name := "FortressCore",
// Use Java 10
javacOptions ++= Seq("-source", "10", "-target", "10"),
scalacOptions += "-target:jvm-10",
// Antlr
Antlr4 / antlr4Version := "4.7.2",
Antlr4 / antlr4PackageName := Some("fortress.inputs"),
Antlr4 / antlr4GenListener := false, // default: true
Antlr4 / antlr4GenVisitor := true, // default: false
Antlr4 / antlr4TreatWarningsAsErrors := true, // default: false
// Dependencies
libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.0" % Test, // Scala test
libraryDependencies += "org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.0", // Parallel collections
// Disable documentation generation
Compile / doc / sources := Seq.empty,
Compile / packageDoc / publishArtifact := false
)