-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
55 lines (34 loc) · 1.59 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
name := "hello-world"
version := "git describe --tags --dirty --always".!!.stripPrefix("v").trim
scalaVersion := "2.12.2"
val http4sVersion = "0.15.13a"
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-core" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-blaze-server" % http4sVersion,
"ch.qos.logback" % "logback-classic" % "1.2.3"
)
dependencyOverrides ++= Set("org.slf4j" % "slf4j-api" % "1.7.25" % "it")
resolvers ++= Seq(
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
"Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases"
)
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-feature", "-unchecked", "-language:_")
javaOptions in run ++= Seq("-Dlogback.configurationFile=conf/logger.xml")
javaOptions in Runtime ++= Seq("-Dlogback.configurationFile=conf/logger.xml")
javaOptions in Test ++= Seq("-Dlogback.configurationFile=conf/logger.xml")
cancelable := true
fork := true
logBuffered := false
enablePlugins(JavaServerAppPackaging)
maintainer in Docker := "HBC Mobile <[email protected]>"
dockerBaseImage := "anapsix/alpine-java:8_server-jre_unlimited"
defaultLinuxInstallLocation in Docker := "/opt/hello_world"
mappings in Universal ++= {
val base = baseDirectory.value
val confDir = base / "conf"
for {
(file, relativePath) <- (confDir.*** --- confDir) x relativeTo(confDir)
} yield file -> s"/conf/$relativePath"
}
bashScriptConfigLocation := Some("${app_home}/../conf/application.ini")