-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
43 lines (40 loc) · 1.89 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
ThisBuild / version := "0.6.0"
ThisBuild / scalaVersion := "3.4.2"
ThisBuild / organization := "eu.izradaweba"
val http4sVersion = "0.23.27"
val awsSdkVersion = "2.18.22"
lazy val root = (project in file("."))
.settings(
name := "Website",
maintainer := "[email protected]",
dockerExposedPorts := Seq(8080),
dockerBaseImage := "eclipse-temurin:21",
dockerRepository := Some("ghcr.io"),
dockerUsername := Some("mabasic/izradaweba"),
dockerLabels := Map(
"org.opencontainers.image.source" -> "https://github.com/mabasic/izradaweba"
),
// Note: Fix for sbt run, not unbinding port on exit.
run / fork := true,
libraryDependencies += "org.http4s" %% "http4s-dsl" % http4sVersion,
libraryDependencies += "org.http4s" %% "http4s-ember-server" % http4sVersion,
libraryDependencies += "org.http4s" %% "http4s-scalatags" % "0.25.2",
libraryDependencies += "com.lihaoyi" %% "scalatags" % "0.13.1",
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.4.1",
libraryDependencies += "com.amazonaws" % "aws-java-sdk-core" % "1.12.346",
libraryDependencies += "com.amazonaws" % "aws-java-sdk-sesv2" % "1.12.346",
libraryDependencies += "software.amazon.awssdk" % "bom" % awsSdkVersion,
libraryDependencies += "software.amazon.awssdk" % "sesv2" % awsSdkVersion,
libraryDependencies += "org.scalactic" %% "scalactic" % "3.2.18"
)
.enablePlugins(JavaAppPackaging)
lazy val js = (project in file("js"))
.settings(
name := "Website JS",
scalaJSUseMainModuleInitializer := true,
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "2.8.0",
Compile / fastLinkJS / scalaJSLinkerOutputDirectory := baseDirectory.value / "../src/main/resources/js",
Compile / fullLinkJS / scalaJSLinkerOutputDirectory := baseDirectory.value / "../src/main/resources/js"
)
.enablePlugins(ScalaJSPlugin)
.disablePlugins(RevolverPlugin)