-
-
Notifications
You must be signed in to change notification settings - Fork 104
/
build.sbt
52 lines (43 loc) · 1.21 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
/** Aggregates tasks for all projects */
lazy val root = Project(
"dispatch-all", file(".")
).settings(
Common.settings,
publish := { }
).aggregate(
core,
jsoup,
tagsoup,
json4sJackson,
json4sNative
)
def module(name: String, settings: Seq[Def.Setting[_]] = Seq.empty) =
Project(name,
file(name.replace("-", ""))
).settings(
Common.settings,
Common.testSettings,
settings
).dependsOn(ufcheck % "test->test")
lazy val core = module("core", xmlDependency)
lazy val json4sJackson = module("json4s-jackson")
.dependsOn(core)
.dependsOn(core % "test->test")
lazy val json4sNative = module("json4s-native")
.dependsOn(core)
.dependsOn(core % "test->test")
lazy val jsoup = module("jsoup")
.dependsOn(core)
.dependsOn(core % "test->test")
lazy val tagsoup = module("tagsoup")
.dependsOn(core)
.dependsOn(core % "test->test")
lazy val xmlDependency = libraryDependencies ++= Seq("org.scala-lang.modules" %% "scala-xml" % "2.1.0")
/** Util module for using unfiltered with scalacheck */
lazy val ufcheck = project.in(file("ufcheck")).settings(
Common.settings,
publishArtifact := false,
publish := {},
publishLocal := {}
)
scalacOptions ++= Seq( "-unchecked", "-deprecation" )