forked from epfl-lara/scallion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
76 lines (65 loc) · 2.52 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
val commonSettings = Seq(
version := "0.5",
scalaVersion := "2.12.8",
crossScalaVersions := Seq("2.12.8", "2.13.1"),
organization := "ch.epfl.lara",
resolvers += "bintray-epfl-lara" at "https://dl.bintray.com/epfl-lara/maven",
)
lazy val scallion = project
.in(file("."))
.settings(
commonSettings,
name := "scallion",
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked"
),
Compile / doc / scalacOptions ++= Seq(
"-groups",
"-sourcepath", baseDirectory.value.getAbsolutePath,
"-doc-source-url", "https://raw.githubusercontent.com/epfl-lara/scallion/master€{FILE_PATH}.scala",
"-doc-root-content", baseDirectory.value + "/project/root-doc.txt"
),
target in Compile in doc := baseDirectory.value / "docs",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.8" % "test",
"ch.epfl.lara" %% "silex" % "0.5" % "test",
),
bintrayOrganization := Some("epfl-lara"),
licenses += ("Apache-2.0", url("https://opensource.org/licenses/Apache-2.0")),
bintrayPackageLabels := Seq(
"scala", "parser", "parsing",
"ll1", "ll1-parsing", "ll1-grammar",
"parser-combinators", "parsing-combinators"
),
)
lazy val example = project
.in(file("example"))
.settings(
commonSettings,
name := "scallion-examples",
scalaSource in Compile := baseDirectory.value,
libraryDependencies += "ch.epfl.lara" %% "silex" % "0.5",
)
.dependsOn(scallion)
lazy val benchmark = project
.in(file("benchmark"))
.settings(
commonSettings,
name := "scallion-benchmarks",
fork in run := true,
run / baseDirectory := file("."),
javaOptions in run += "-Xss1024K",
scalaSource in Compile := baseDirectory.value / "src",
scalaSource in Test := baseDirectory.value / "src",
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/releases",
resolvers += "bintray-djspiewak-maven" at "https://dl.bintray.com/djspiewak/maven",
libraryDependencies += "com.storm-enroute" %% "scalameter" % "0.19",
libraryDependencies += "org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2",
libraryDependencies += "com.codecommit" %% "parseback-core" % "0.3",
libraryDependencies += "com.codecommit" %% "parseback-cats" % "0.3",
testFrameworks += new TestFramework("org.scalameter.ScalaMeterFramework"),
parallelExecution in Test := false,
)
.dependsOn(scallion)