-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
55 lines (46 loc) · 1.3 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
49
50
51
52
53
54
55
val Spotification = "3.3.9"
val Scala = "2.13.15"
val Java = "21"
val DockerImage = "eclipse-temurin:21.0.1_12-jre-alpine"
val MainClass = "spotification.SpotificationHttpApp"
lazy val root = project.in(file("."))
.settings(
organization := "com.github.programaker",
name := "spotification",
version := Spotification,
scalaVersion := Scala,
libraryDependencies ++= Dependencies.libraries,
Dependencies.compilerPlugins.map(addCompilerPlugin),
scalacOptions ++= Seq(
"-encoding", "utf8",
"-feature",
"-explaintypes",
"-deprecation",
"-language:experimental.macros",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-Ywarn-dead-code",
"-Ywarn-value-discard",
"-Ywarn-unused:imports",
"-Ywarn-unused:implicits",
"-Ywarn-unused:explicits",
"-Ywarn-unused:locals",
"-Ywarn-unused:params",
"-Ywarn-unused:patvars",
"-Ywarn-unused:privates",
"-Ymacro-annotations"
),
javacOptions ++= Seq(
"-source", Java,
"-target", Java
),
Compile / mainClass := Some(MainClass),
dockerBaseImage := DockerImage,
dockerExposedPorts += 8080
)
.enablePlugins(
JavaServerAppPackaging,
DockerPlugin,
AshScriptPlugin
)