-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
54 lines (50 loc) · 1.68 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
import com.typesafe.sbt.packager.docker.DockerChmodType.UserGroupWriteExecute
import play.sbt.routes.RoutesKeys
RoutesKeys.routesImport := Seq.empty
//-------[ Project Information ]------------
name := "reactive-pizza"
description := "An Example for N-tiers layer"
ThisBuild / version := "1.0.0"
ThisBuild / scalaVersion := "2.13.7"
//----------[ Dependences ]-------------
val dbDependences = Seq(
"mysql" % "mysql-connector-java" % "8.0.27",
"com.typesafe.play" %% "play-slick" % "5.0.0",
"org.flywaydb" %% "flyway-play" % "7.17.0"
)
//----------[ Common Setting ]-----------------
val commonSettings = List(
scalacOptions ++= List(
"-encoding", "utf8",
"-deprecation",
"-feature",
"-unchecked",
"-Xlint",
"-Ywarn-dead-code",
"-opt:l:inline",
"-Xfatal-warnings",
"-language:implicitConversions",
"-language:higherKinds",
"-language:existentials",
"-language:postfixOps"
),
resolvers ++= List(
Resolver.jcenterRepo,
Resolver.sonatypeRepo("snapshots")
)
)
//------------[ Docker setting ]---------------------------
packageName := "reactive-pizza"
version := "1.0.0"
maintainer := "anboo33"
dockerBaseImage := "openjdk:11"
dockerExposedPorts := Seq(9000, 9000)
daemonUser := "root"
dockerChmodType := UserGroupWriteExecute
//------------[ Module setting ]---------------------------
lazy val root = (project in file("."))
.enablePlugins(PlayScala, LauncherJarPlugin, DockerPlugin)
.disablePlugins(PlayLayoutPlugin)
.settings(commonSettings: _*)
.settings(libraryDependencies ++= dbDependences)
.settings(libraryDependencies ++= Seq(guice, filters, caffeine))