-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
46 lines (40 loc) · 1.34 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
name := """dbflute-play-guice-java-example"""
def commonSettings = Seq(
version := "2.6.3",
scalaVersion := "2.12.2", // cf. play-java-starter-example
javacOptions ++= Seq("-encoding", "utf8")
)
lazy val root = Project("Example-Main", file("."))
.enablePlugins(PlayJava)
.dependsOn(dbflute)
.aggregate(dbflute)
.settings(
commonSettings,
libraryDependencies ++= Seq(
guice,
javaJdbc,
"com.h2database" % "h2" % Dependencies.h2databaseVersion,
"org.springframework" % "spring-jdbc" % Dependencies.springframeworkVersion,
"org.springframework" % "spring-aop" % Dependencies.springframeworkVersion
)
)
lazy val dbflute = Project("Example-DBFlute", file("dbflute"))
// .disablePlugins(PlayEnhancer)
.settings(
commonSettings,
autoScalaLibrary := false,
crossPaths := false,
libraryDependencies ++= Seq(
Dependencies.guice,
Dependencies.dbfluteRuntime
)
)
javaOptions in Test ++= Seq(
"-Dconfig.resource=application-test.conf",
"-Dlogger.resource=logback-test.xml"
)
// Testing libraries for dealing with CompletionStage...
libraryDependencies += "org.assertj" % "assertj-core" % "3.6.2" % Test
libraryDependencies += "org.awaitility" % "awaitility" % "2.0.0" % Test
// Make verbose tests
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-a", "-v"))