-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
34 lines (26 loc) · 902 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
32
33
34
name := "play-instana-demo"
organization := "org.example"
scalaVersion := "2.11.8"
lazy val root = (project in file("."))
.enablePlugins(PlayScala)
.enablePlugins(BuildInfoPlugin)
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-encoding", "UTF-8")
libraryDependencies ++= Seq(
ws,
filters,
cache,
"org.mongodb.scala" %% "mongo-scala-driver" % "2.5.0"
)
// play
routesGenerator := InjectedRoutesGenerator
packageOptions in PlayKeys.playJarSansExternalized := (packageOptions in (Compile, packageBin)).value
// disable sources and doc
sources in (Compile, doc) := Seq.empty
publishArtifact in (Compile, packageDoc) := false
// sbt-native-packager
mainClass in Compile := Some("org.example.Launcher")
topLevelDirectory in Universal := None
// sbt-buildinfo
buildInfoPackage := "utils"
buildInfoOptions += BuildInfoOption.ToJson
buildInfoOptions += BuildInfoOption.BuildTime