-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
71 lines (55 loc) · 2.63 KB
/
build.sbt
File metadata and controls
71 lines (55 loc) · 2.63 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name := "LSBEngine"
version := "1.1.2"
scalaVersion := "2.12.4"
scalacOptions ++= Seq("-unchecked", "-deprecation", "-encoding", "utf8", "-feature")
libraryDependencies ++= {
val akkaV = "2.4.16"
val akkaHttpV = "10.0.3"
val reactiveMongoV = "0.12.6"
val scalaTestV = "3.0.1"
val nscalaTimeV = "2.18.0"
val slf4jV = "1.7.21"
val logbackV = "1.1.7"
Seq(
"org.reactivemongo" %% "reactivemongo" % reactiveMongoV,
"com.typesafe.akka" %% "akka-http-core" % akkaHttpV,
"com.typesafe.akka" %% "akka-http" % akkaHttpV,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpV,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpV,
"com.typesafe.akka" %% "akka-http-jackson" % akkaHttpV,
"com.typesafe.akka" %% "akka-http-xml" % akkaHttpV,
"com.typesafe.akka" %% "akka-actor" % akkaV,
"com.typesafe.akka" %% "akka-testkit" % akkaV % "test",
"com.typesafe.akka" %% "akka-slf4j" % akkaV,
"org.scalatest" %% "scalatest" % scalaTestV % "test",
"com.github.nscala-time" %% "nscala-time" % nscalaTimeV,
"org.slf4j" % "slf4j-api" % slf4jV,
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"ch.qos.logback" % "logback-core" % logbackV,
"ch.qos.logback" % "logback-classic" % logbackV,
"net.logstash.logback" % "logstash-logback-encoder" % "4.7"
)
}
lazy val `lsbengine` = project.in(file(".")).
enablePlugins(SbtTwirl)
resolvers ++= Seq("spray" at "http://repo.spray.io/")
resolvers ++= Seq("snapshots", "releases").map(Resolver.sonatypeRepo)
resolvers ++= Seq("Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/")
resolvers ++= Seq("Typesafe repository releases" at "http://repo.typesafe.com/typesafe/releases/")
resolvers ++= Seq("slf4j on Maven" at "https://mvnrepository.com/artifact/org.slf4j/slf4j-api")
resolvers ++= Seq("logback-core on Maven" at "https://mvnrepository.com/artifact/ch.qos.logback/logback-core")
resolvers ++= Seq("logback-classic on Maven" at "https://mvnrepository.com/artifact/ch.qos.logback/logback-classic")
resolvers ++= Seq("Logback logstash interface" at "https://mvnrepository.com/artifact/net.logstash.logback/logstash-logback-encoder")
assemblyJarName in assembly := "lsbengine.jar"
test in assembly := {}
parallelExecution in Test := false
mainClass in(Compile, run) := Some("me.lsbengine.server.Blog")
enablePlugins(JavaAppPackaging)
enablePlugins(DockerPlugin)
enablePlugins(AshScriptPlugin)
import com.typesafe.sbt.packager.docker._
dockerBaseImage := "openjdk:jre-alpine"
dockerEntrypoint := Seq("bin/blog")
dockerExposedPorts := Seq(9090, 8080)
dockerExposedVolumes := Seq("/opt/docker/images")
dockerUpdateLatest := true