/
build.sbt
78 lines (60 loc) · 2.3 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
78
lazy val base = project.in(file("base"))
lazy val cassandra = project.in(file("cassandra")).dependsOn(base % "test->test;compile->compile")
lazy val cassandraScalaz = project.in(file("cassandra.scalaz")).dependsOn(cassandra % "test->test;compile->compile")
lazy val jdbc = project.in(file("jdbc")).dependsOn(base % "test->test;compile->compile")
lazy val h2 = project.in(file("h2")).dependsOn(jdbc % "test->test;compile->compile")
lazy val jdbcScalaz = project.in(file("jdbc.scalaz")).dependsOn(jdbc, h2 % "test->test")
lazy val postgresql = project.in(file("postgresql")).dependsOn(jdbc % "test->test;compile->compile")
lazy val sqlserver = project.in(file("sqlserver")).dependsOn(jdbc % "test->test;compile->compile")
lazy val examples = project.in(file("examples")).dependsOn(h2 % "test->test;compile->compile")
lazy val root =
project.
in(file(".")).
settings(publishArtifact := false).
settings(unidocSettings: _*).
aggregate(
base,
cassandra,
cassandraScalaz,
jdbc,
jdbcScalaz,
h2,
postgresql,
sqlserver,
examples
)
scalaVersion in ThisBuild := "2.11.7"
crossScalaVersions := Seq("2.10.5")
version in ThisBuild := "1.0"
licenses in ThisBuild := Seq("The BSD 3-Clause License" -> url("http://opensource.org/licenses/BSD-3-Clause"))
homepage in ThisBuild := Some(url("https://github.com/wdacom/"))
(publishArtifact in Test) in ThisBuild := true
pomExtra in ThisBuild :=
<developers>
<developer>
<name>Jeff Shaw</name>
<id>shawjef3</id>
<url>https://github.com/shawjef3/</url>
<organization>Rocketfuel</organization>
<organizationUrl>http://rocketfuel.com/</organizationUrl>
</developer>
</developers>
<scm>
<url>git@github.com:rocketfuel/sdbc.git</url>
<connection>scm:git:git@github.com:rocketfuel/sdbc.git</connection>
</scm>
//Some helpful compiler flags from https://tpolecat.github.io/2014/04/11/scalac-flags.html
scalacOptions in ThisBuild ++= Seq(
"-deprecation",
"-encoding", "UTF-8", // yes, this is 2 args
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-language:postfixOps",
"-unchecked",
"-Xfatal-warnings",
"-Yno-adapted-args",
"-Xfuture"
)
scalacOptions in (Compile, doc) ++= Seq("-doc-root-content", baseDirectory.value+"/rootdoc.txt")