-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.sbt
78 lines (66 loc) · 2.51 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
75
76
val commonSettings = Seq(
version := "0.6",
scalaVersion := "3.5.0",
crossScalaVersions := Seq("3.5.0"),
organization := "ch.epfl.lara",
// resolvers += "bintray-epfl-lara" at "https://dl.bintray.com/epfl-lara/maven",
)
def ghProject(repo: String, version: String) = RootProject(uri(s"${repo}#${version}"))
lazy val silex = ghProject("https://github.com/epfl-lara/silex.git", "f13df9ee24288cee167e262b6a36be29c63b7045")
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-root-content", baseDirectory.value + "/project/root-doc.txt"
),
Compile / doc / target := baseDirectory.value / "docs",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.9" % "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"
),
).dependsOn(silex)
lazy val example = project
.in(file("example"))
.settings(
commonSettings,
name := "scallion-examples",
Compile / scalaSource := baseDirectory.value,
)
.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)
*/