forked from playframework/anorm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
71 lines (63 loc) · 2.29 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
import AnormGeneration.{ generateFunctionAdapter => GFA }
lazy val acolyteVersion = "1.0.33-j7p"
lazy val `anorm-tokenizer` = project
.in(file("tokenizer"))
.enablePlugins(PlayLibrary)
.settings(scalariformSettings: _*)
.settings(
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value
)
)
lazy val anorm = project
.in(file("core"))
.enablePlugins(Playdoc, PlayLibrary)
.settings(scalariformSettings: _*)
.settings({
sourceGenerators in Compile <+= (
sourceManaged in Compile).map(m => Seq(GFA(m / "anorm")))
})
.settings(scalacOptions += "-Xlog-free-terms")
.settings({
libraryDependencies ++= Seq(
"com.jsuereth" %% "scala-arm" % "1.4",
"joda-time" % "joda-time" % "2.6",
"org.joda" % "joda-convert" % "1.7",
"com.h2database" % "h2" % "1.4.182" % Test,
"org.eu.acolyte" %% "jdbc-scala" % acolyteVersion % Test,
"com.chuusai" % "shapeless" % "2.0.0" % Test cross CrossVersion.
binaryMapped {
case "2.10" => "2.10.4"
case x => x
}
) ++ (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, scalaMajor)) if scalaMajor >= 11 =>
Seq("org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.1")
case _ => Seq(
compilerPlugin("org.scalamacros" % "paradise" % "2.1.0-M5" cross CrossVersion.full),
"org.scalamacros" %% "quasiquotes" % "2.1.0-M5" cross CrossVersion.binary)
}) ++ Seq(
"specs2-core",
"specs2-junit"
).map("org.specs2" %% _ % "2.4.9" % Test)
}).dependsOn(`anorm-tokenizer`)
lazy val `anorm-iteratee` = (project in file("iteratee"))
.enablePlugins(PlayLibrary)
.settings(scalariformSettings: _*)
.settings(
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-iteratees" % "2.4.2" % "provided",
"org.eu.acolyte" %% "jdbc-scala" % acolyteVersion % Test
) ++ Seq(
"specs2-core",
"specs2-junit"
).map("org.specs2" %% _ % "2.4.9" % Test)
).dependsOn(anorm)
lazy val `anorm-parent` = (project in file("."))
.enablePlugins(PlayRootProject)
.aggregate(`anorm-tokenizer`, anorm, `anorm-iteratee`)
lazy val docs = project
.in(file("docs"))
.enablePlugins(PlayDocsPlugin)
.dependsOn(anorm)
playBuildRepoName in ThisBuild := "anorm"