-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
41 lines (36 loc) · 1.11 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
scalaVersion in ThisBuild := "2.11.8"
lazy val appVersion = "1.0"
def project(id: String, versionV: String) = Project(id = id, base = file(id))
.settings(
scalacOptions ++= Seq(
"-deprecation",
"-target:jvm-1.8",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-language:postfixOps",
"-unchecked",
"-Xlint",
"-Xlint:missing-interpolator",
"-Yno-adapted-args",
"-Ywarn-unused",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-Ywarn-unused-import"
)
)
// loads the Play project at sbt startup
onLoad in Global := (Command.process("project examples", _: State)) compose (onLoad in Global).value
lazy val examples = project("examples", appVersion).enablePlugins(PlayScala).dependsOn(framework)
lazy val framework = project("framework", appVersion)
.settings(
libraryDependencies ++= Seq(
"com.lihaoyi" %% "scalatags" % "0.6.1",
jdbc,
"mysql" % "mysql-connector-java" % "5.1.36"
)
)