-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
29 lines (24 loc) · 862 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
ThisBuild / scalaVersion := "3.3.4"
run / fork := true
libraryDependencies ++= Seq(
"org.apache.pekko" %% "pekko-actor-typed" % "1.1.3",
"org.apache.pekko" %% "pekko-stream" % "1.1.3",
"org.apache.pekko" %% "pekko-http" % "1.1.0",
"ch.qos.logback" % "logback-classic" % "1.5.16",
"org.scalactic" %% "scalactic" % "3.2.19",
"org.scalatest" %% "scalatest" % "3.2.19" % Test
)
enablePlugins(JavaAppPackaging)
enablePlugins(DockerPlugin)
Docker / packageName := "sample-webapp"
Docker / version := "2.0.0"
dockerBaseImage := "eclipse-temurin:latest"
dockerExposedPorts := List(8080)
assembly / mainClass := Some("Main")
ThisBuild / assemblyMergeStrategy := {
case PathList(ps @ _*) if ps.last endsWith "module-info.class" =>
MergeStrategy.discard
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
}