-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
45 lines (36 loc) · 1.34 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
name := "akka-remote-scala-chat"
version := "1.0"
scalaVersion := "2.12.1"
val akkaVersion: String = "2.5.4"
val scalaTestVersion: String = "3.0.1"
val slickVersion : String = "3.2.1"
val mySqlVersion : String = "6.0.6"
//Akka
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test,
"com.typesafe.akka" %% "akka-remote" % akkaVersion
)
//ScalaTest
libraryDependencies ++= Seq(
"org.scalactic" %% "scalactic" % scalaTestVersion,
"org.scalatest" %% "scalatest" % scalaTestVersion % "test"
)
//Slick
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick" % slickVersion,
"com.typesafe.slick" %% "slick-hikaricp" % slickVersion
)
//MySQL connector
libraryDependencies += "mysql" % "mysql-connector-java" % mySqlVersion
//JBCrypt
libraryDependencies += "org.mindrot" % "jbcrypt" % "0.4"
//SBT native packager for docker
enablePlugins(JavaAppPackaging)
enablePlugins(DockerPlugin)
//Docker settings
dockerExposedPorts := Seq(5150)
mainClass in Compile := Some("com.mb.akkaremotechat.MainServer")
dockerEntrypoint := Seq("bin/%s" format executableScriptName.value, "-Dconfig.resource=docker.conf")
//SLF4J Logger (for slick) - disabled - enable if you want slick to use a real logger
//libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.1.3"