forked from playframework/anorm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
64 lines (56 loc) · 1.98 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
import AnormGeneration.{ generateFunctionAdapter => GFA }
val PlayVersion = playVersion(sys.props.getOrElse("play.version", "2.5.0-M1"))
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",
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.1",
"com.h2database" % "h2" % "1.4.182" % Test,
"org.eu.acolyte" %% "jdbc-scala" % acolyteVersion % Test,
"com.chuusai" %% "shapeless" % "2.0.0" % Test
) ++ 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" % PlayVersion % "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`)
.settings(scalaVersion := "2.11.7")
lazy val docs = project
.in(file("docs"))
.enablePlugins(PlayDocsPlugin)
.dependsOn(anorm)
playBuildRepoName in ThisBuild := "anorm"