-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
35 lines (32 loc) · 1.09 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
import Dependencies._
import BuildInfo._
import Dependencies.Libraries._
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("fmtCheck", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
lazy val vicly_backend_new = project
.in(file("new"))
.settings(
scalafmtOnCompile := true,
baseDockerSettings,
libraryDependencies ++= Seq(
compilerPlugin(CompilePlugins.kindProjector cross CrossVersion.full),
compilerPlugin(CompilePlugins.bm4),
fs2,
http4sJwtAuth,
newtype,
flywayCore,
TestLibraries.scalaTest,
Libraries.flywayCore
) ++ cats ++ tofu ++ http4s ++ doobie ++ circe ++ refined ++ pureConfig,
name := "backend_new",
version := "0.0.1",
scalaVersion := "2.13.6",
)
.enablePlugins(UniversalPlugin, DockerPlugin, JavaAppPackaging)
.withBuildInfo
val baseDockerSettings: Seq[Def.Setting[_]] = Seq(
Docker / packageName:= "vicly_backend_new",
dockerBaseImage := "openjdk:8u201-jre-alpine3.9",
dockerExposedPorts ++= Seq(8080),
dockerUpdateLatest := true
)