-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
32 lines (22 loc) · 988 Bytes
/
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
name := """java-play-angular-seed"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayJava).settings(
watchSources ++= (baseDirectory.value / "ui/src" ** "*").get
)
scalaVersion := "2.12.8"
libraryDependencies += guice
// Test Database
libraryDependencies += "com.h2database" % "h2" % "1.4.199"
// Testing libraries for dealing with CompletionStage...
libraryDependencies += "org.assertj" % "assertj-core" % "3.12.2" % Test
libraryDependencies += "org.awaitility" % "awaitility" % "3.1.6" % Test
// Make verbose tests
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-a", "-v"))
//forcing java version- 1.8 for compiling the java files
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint")
initialize := {
val _ = initialize.value
val javaVersion = sys.props("java.specification.version")
if (javaVersion != "1.8")
sys.error("Java 1.8 is required for this project. Found " + javaVersion + " instead")
}