-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
57 lines (45 loc) · 1.63 KB
/
build.sbt
File metadata and controls
57 lines (45 loc) · 1.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
name := "mokocharlie-api"
version := "1.0"
scalaVersion := "2.12.4"
organization := "com.mokocharlie"
lazy val root = (project in file(".")).
enablePlugins(JavaServerAppPackaging).
settings(
name := "mokocharlie-api",
scalaVersion := "2.12.4",
version := "1.0"
)
libraryDependencies ++= {
lazy val akkaVersion = "2.5.8"
lazy val httpVersion = "10.0.11"
lazy val catsVersion = "0.9.0"
lazy val logbackVersion = "1.1.3"
lazy val scalikeVersion = "2.5.0"
Seq(
// typesafe
"com.typesafe.akka" %% "akka-http" % httpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % httpVersion,
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.scala-logging" %% "scala-logging" % "3.5.0",
"org.scalikejdbc" %% "scalikejdbc" % scalikeVersion,
"org.scalikejdbc" %% "scalikejdbc-jsr310" % scalikeVersion,
// database layer
"mysql" % "mysql-connector-java" % "5.1.42",
"com.mchange" % "c3p0" % "0.9.5.2",
// logging
"ch.qos.logback" % "logback-classic" % logbackVersion % "runtime",
"ch.qos.logback" % "logback-core" % logbackVersion % "runtime",
"org.codehaus.janino" % "janino" % "2.7.8",
//other 3rd party
"org.typelevel" %% "cats" % catsVersion,
// Test dependencies
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"com.typesafe.akka" %% "akka-http-testkit" % httpVersion % "test"
)
}
enablePlugins(JavaAppPackaging)
mainClass in assembly := Some("com.mokocharlie.main.MokoCharlieApi")
enablePlugins(DockerPlugin)
dockerBaseImage := "openjdk:jre-alpine"
enablePlugins(AshScriptPlugin)