-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
48 lines (46 loc) · 1.5 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
addCommandAlias("build", "prepare; test")
addCommandAlias("prepare", "fix; fmt")
addCommandAlias("check", "fixCheck; fmtCheck")
addCommandAlias("fix", "all compile:scalafix test:scalafix")
addCommandAlias(
"fixCheck",
"compile:scalafix --check; test:scalafix --check"
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias(
"fmtCheck",
"all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck"
)
inThisBuild(
List(
organization := "mtum.corp",
developers := List(
Developer(
"mtumilowicz",
"Michal Tumilowicz",
url("https://github.com/mtumilowicz")
)
),
licenses := Seq(
"MIT" -> url(
s"https://github.com/mtumilowicz/scala-http4s-zio-doobie-workshop/blob/master/LICENSE"
)
),
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalaVersion := "2.13.6",
scalafixDependencies ++= Dependencies.ScalaFix
)
)
lazy val root = (project in file("."))
.enablePlugins(JavaAppPackaging, DockerSpotifyClientPlugin)
.settings(
dockerBaseImage := "openjdk:11-jre-slim-buster",
dockerExposedPorts in Docker := Seq(8080),
dockerUsername in Docker := Some("mtumilowicz"),
libraryDependencies ++= Dependencies.App,
name := "scala-http4s-zio-doobie-workshop",
scalacOptions in ThisBuild := Options.scalacOptions(scalaVersion.value, isSnapshot.value),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)