-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
31 lines (26 loc) · 849 Bytes
/
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
import Dependencies.*
val scala3Version = "3.3.1"
val dockerImage = sys.env.getOrElse("JDK_17_DOCKER_IMAGE", s"openjdk:17-jdk-slim-buster")
lazy val commonSettings = Seq(
scalafmtOnCompile := true
)
lazy val root = project.in(file("."))
.settings(
name := "tasks-service",
version := "0.1.0-SNAPSHOT",
)
.aggregate(tasksService)
lazy val tasksService = project.in(file("modules/service"))
.enablePlugins(JavaAppPackaging)
.settings(commonSettings)
.settings(
name := "tasks-svc",
scalaVersion := scala3Version,
Docker / packageName := "tasks-service",
dockerBaseImage := s"$dockerImage",
dockerExposedPorts := Seq(8080),
dockerAliases := Seq(
dockerAlias.value.withTag(Some("latest"))
),
libraryDependencies ++= Seq(munit),
)