-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
48 lines (42 loc) · 1.9 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
import NativePackagerHelper._
ThisBuild / scalaVersion := "3.5.2"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / organization := "com.lunatech"
ThisBuild / organizationName := "lunatech"
lazy val V = new {
val circe = "0.14.10"
val logback = "1.5.12"
val pekko = "1.1.2"
val pekkoHttp = "1.1.0"
val scalatest = "3.2.19"
}
lazy val root = project
.in(file("."))
.settings(
name := "pointingpoker",
libraryDependencies += "org.apache.pekko" %% "pekko-actor-typed" % V.pekko,
libraryDependencies += "org.apache.pekko" %% "pekko-stream" % V.pekko,
libraryDependencies += "ch.qos.logback" % "logback-classic" % V.logback,
libraryDependencies += "org.apache.pekko" %% "pekko-http" % V.pekkoHttp,
libraryDependencies += "io.circe" %% "circe-core" % V.circe,
libraryDependencies += "io.circe" %% "circe-parser" % V.circe,
libraryDependencies += "io.circe" %% "circe-generic" % V.circe,
libraryDependencies += "org.scalatest" %% "scalatest" % V.scalatest % Test,
libraryDependencies += "org.apache.pekko" %% "pekko-actor-testkit-typed" % V.pekko % Test,
libraryDependencies += "org.apache.pekko" %% "pekko-stream-testkit" % V.pekko % Test,
libraryDependencies += "org.apache.pekko" %% "pekko-http-testkit" % V.pekkoHttp % Test
)
.enablePlugins(JavaAppPackaging)
.enablePlugins(UniversalPlugin)
.enablePlugins(DockerPlugin)
addCommandAlias(
"qa",
"; clean; coverage ; test; coverageReport"
)
addCommandAlias(
"styleCheck",
"; scalafmtCheckAll ; scalafmtSbtCheck"
)
Universal / mappings ++= directory("src/main/resources/pages")
dockerEnvVars := Map("PORT" -> "$PORT", "HOST" -> "$HOST", "INDEX_PATH" -> "$INDEX_PATH")
dockerBaseImage := "openjdk:17"