-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
197 lines (179 loc) · 5.82 KB
/
build.sbt
File metadata and controls
197 lines (179 loc) · 5.82 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
name := "dahu"
//scalafixSettings
lazy val commonSettings = Seq(
organization := "com.github.arthur-bit-monnot",
scalaVersion := "2.12.6",
crossPaths := true,
// To sync with Maven central
publishMavenStyle := true,
// POM settings for Sonatype
homepage := Some(url("https://github.com/arthur-bit-monnot/copla")),
scmInfo := Some(
ScmInfo(url("https://github.com/arthur-bit-monnot/copla"),
"git@github.com:arthur-bit-monnot/fape.git")),
developers += Developer("abitmonn",
"Arthur Bit-Monnot",
"arthur.bit-monnot@laas.fr",
url("https://github.com/arthur-bit-monnot")),
licenses += ("BSD-2-Clause", url("https://opensource.org/licenses/BSD-2-Clause")),
pomIncludeRepository := (_ => false),
resolvers += Resolver.mavenLocal,
scalacOptions ++= Seq(
"-target:jvm-1.8",
"-encoding",
"UTF-8",
"-unchecked",
"-deprecation",
// "-Xfuture",
"-Ypartial-unification",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
// "-Ywarn-unused",
"-feature",
"-language:higherKinds",
"-language:existentials",
// experimental option to speed up the build require 2.12.5
"-Ycache-plugin-class-loader:last-modified",
"-Ycache-macro-class-loader:last-modified",
"-Ybackend-parallelism", "3"
// "-opt:simplify-jumps",
// "-opt:compact-locals",
// "-opt:copy-propagation",
// "-opt:box-unbox",
// "-opt:closure-invocations",
// "-opt:unreachable-code"
),
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.6"),
//addCompilerPlugin("io.tryp" % "splain" % "0.2.10" cross CrossVersion.patch),
)
lazy val utestSettings = Seq(
libraryDependencies += "com.lihaoyi" %% "utest" % "0.6.4" % "test",
testFrameworks += new TestFramework("utest.runner.Framework")
)
lazy val root = project
.in(file("."))
.aggregate(utils, recursion, model, solvers, benchmarks, anmlParser)
.settings(
scalaVersion := "2.12.4",
publish := {},
publishLocal := {}
)
lazy val algebra = project
.in(file("core/algebra"))
.settings(name := "dahu-core-algebra")
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "1.1.0",
"org.typelevel" %% "spire" % "0.14.1"
))
lazy val planningModel = project
.in(file("planning/model"))
.settings(name := "dahu-planning-model")
.dependsOn(algebra)
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.3.3",
"org.typelevel" %% "spire" % "0.14.1"
))
lazy val anmlParser = project
.in(file("planning/anml/parser"))
.settings(name := "dahu-anml")
.dependsOn(planningModel)
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(
"com.lihaoyi" %% "fastparse" % "1.0.0",
"com.github.scopt" %% "scopt" % "3.7.0",
"com.chuusai" %% "shapeless" % "2.3.3",
"org.scalatest" %% "scalatest" % "3.0.5" % "test"
))
lazy val pddlParser = project
.in(file("planning/pddl/parser"))
.settings(name := "dahu-pddl")
.dependsOn(planningModel, utils)
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(
"fr.uga" % "pddl4j" % "3.6.0"
))
lazy val utils = project
.in(file("utils"))
.settings(name := "dahu-utils")
.settings(commonSettings ++ utestSettings: _*)
.settings(
libraryDependencies ++= Seq(
"org.spire-math" %% "debox" % "0.8.0",
"org.typelevel" %% "cats-core" % "1.1.0",
))
lazy val recursion = project
.in(file("recursion"))
.dependsOn(utils)
.settings(name := "recursion")
.settings(commonSettings ++ utestSettings: _*)
.settings(
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "1.1.0",
"org.typelevel" %% "cats-free" % "1.1.0",
))
lazy val model = project
.in(file("core/model"))
.dependsOn(utils, recursion, algebra)
.settings(name := "dahu-model")
.settings(commonSettings ++ utestSettings: _*)
.settings(
libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.3.3",
))
lazy val solvers = project
.in(file("core/solvers"))
.dependsOn(utils, model)
.settings(name := "dahu-solvers")
.settings(commonSettings ++ utestSettings: _*)
.settings(
libraryDependencies ++= Seq(
"org.scalacheck" %% "scalacheck" % "1.13.5" % "test",
))
lazy val z3 = project
.in(file("core/solvers/z3"))
.dependsOn(utils, model, solvers)
.settings(name := "dahu-z3")
.settings(commonSettings ++ utestSettings: _*)
lazy val benchmarks = project
.in(file("benchmarks"))
.dependsOn(utils, solvers, z3)
.settings(commonSettings ++ utestSettings: _*)
lazy val planner = project
.in(file("planning/planner"))
.dependsOn(anmlParser, solvers, z3)
.settings(commonSettings ++ utestSettings: _*)
.settings(libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % "1.0.0-RC"
))
lazy val anmlPlanner = project
.in(file("planning/anml/planner"))
.dependsOn(anmlParser, planner)
.settings(commonSettings ++ utestSettings: _*)
.settings(
mainClass in assembly := Some("dahu.planning.anml.planner.Main"),
assemblyJarName in assembly := "dahu-anml-planner.jar"
)
.settings(
libraryDependencies ++= Seq(
"com.github.scopt" %% "scopt" % "3.7.0",
"org.typelevel" %% "cats-effect" % "1.0.0-RC"
))
lazy val pddlPlanner = project
.in(file("planning/pddl/planner"))
.dependsOn(pddlParser, planner)
.settings(commonSettings ++ utestSettings: _*)
.settings(
mainClass in assembly := Some("dahu.planning.pddl.planner.Main"),
assemblyJarName in assembly := "dahu-pddl-planner.jar"
)
.settings(
libraryDependencies ++= Seq(
"com.github.scopt" %% "scopt" % "3.7.0",
"com.lihaoyi" %% "ammonite-ops" % "1.1.0"
))
resolvers += Resolver.sonatypeRepo("releases")
exportJars := true