This repository has been archived by the owner on Sep 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
63 lines (57 loc) · 2.15 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
56
57
58
59
60
61
62
63
scalafmtOnCompile in ThisBuild := true
lazy val root = Project("slick-development-root", base = file("."))
.aggregate(basic, common)
lazy val book = project.in(file("book"))
.dependsOn(basic, common)
.enablePlugins(ParadoxPlugin)
.settings(basicSettings)
lazy val basic = project.in(file("basic"))
.dependsOn(common % "compile->compile;test->test")
.settings(basicSettings)
.settings()
lazy val common = project.in(file("common"))
.settings(basicSettings)
.settings(
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-api" % "1.7.25",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.fasterxml.jackson.datatype" % "jackson-datatype-jdk8" % "2.9.6",
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.9.6",
"com.fasterxml.jackson.module" % "jackson-module-parameter-names" % "2.9.6",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.9.6",
"mysql" % "mysql-connector-java" % "6.0.6",
"org.postgresql" % "postgresql" % "42.2.5",
"com.typesafe.slick" %% "slick" % "3.2.3",
"com.github.tminglei" %% "slick-pg" % "0.16.3",
"com.github.tminglei" %% "slick-pg_circe-json" % "0.16.3",
"com.typesafe.slick" %% "slick-testkit" % "3.2.3" % Test,
"org.scalatest" %% "scalatest" % "3.0.5" % Test
)
)
lazy val basicSettings = Seq(
organization := "me.yangbajing",
organizationName := "Yangbajing's Garden",
organizationHomepage := Some(url("https://yangbajing.me")),
homepage := Some(url("http://www.yangbajing.me/slick-development/")),
startYear := Some(2018),
scalaVersion := "2.12.6",
scalacOptions ++= Seq(
"-encoding",
"UTF-8", // yes, this is 2 args
"-feature",
"-deprecation",
"-unchecked",
"-Xlint",
"-Yno-adapted-args", //akka-http heavily depends on adapted args and => Unit implicits break otherwise
"-Ypartial-unification",
"-Ywarn-dead-code"
),
javacOptions in Compile ++= Seq("-Xlint:unchecked", "-Xlint:deprecation"),
shellPrompt := { s =>
Project.extract(s).currentProject.id + " > "
},
test in assembly := {},
fork in run := true,
fork in Test := true,
parallelExecution in Test := false
)