-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
78 lines (63 loc) · 2.14 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
77
name := "ffm"
description := "Forest flammability model"
scalaVersion in ThisBuild := "2.12.2"
lazy val printClasspath = taskKey[Unit]("Print classpath")
lazy val commonSettings = Seq(
version := "0.2.0",
organization := "CSES",
printClasspath := {
val els = (fullClasspath in Runtime).value.files map(_.getPath)
print(els.mkString(java.io.File.pathSeparator))
}
)
lazy val testSettings = Seq(
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"org.scalacheck" %% "scalacheck" % "1.13.4" % "test",
"org.mockito" % "mockito-core" % "1.9.5" % "test"
)
)
lazy val root = (project in file(".")).
aggregate(common, fire, forest, io, runner)
lazy val common = (project in file("common")).
settings(commonSettings: _*).
settings(testSettings: _*).
settings(
libraryDependencies ++= Seq(
"com.vividsolutions" % "jts" % "1.13",
"org.apache.commons" % "commons-math3" % "3.3"
)
)
lazy val forest = (project in file("forest")).
dependsOn(common).
settings(commonSettings: _*).
settings(testSettings: _*)
lazy val fire = (project in file("fire")).
dependsOn(common, forest).
settings(commonSettings: _*).
settings(testSettings: _*)
lazy val io = (project in file("io")).
dependsOn(common, forest).
settings(commonSettings: _*).
settings(testSettings: _*).
settings(
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.6",
"com.github.tototoshi" %% "scala-csv" % "1.3.4",
// "ch.qos.logback" % "logback-classic" % "[1.1,)",
// "org.tmatesoft.sqljet" % "sqljet" % "1.1.10",
// "org.scalikejdbc" %% "scalikejdbc" % "2.3.5",
"org.xerial" % "sqlite-jdbc" % "3.27.2"
)
)
lazy val runner = (project in file("runner")).
dependsOn(common, fire, forest, io).
settings(commonSettings: _*).
settings(testSettings: _*)
// For sbt-pack plugin
packAutoSettings
// Tell sbteclipse plugin to:
// - download source and create Eclipse attachments for dependencies
EclipseKeys.withSource := true
// - don't generate a project definition for the root project
EclipseKeys.skipParents in ThisBuild := true