-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
44 lines (36 loc) · 1.18 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
lazy val commonSettigs = Seq(
name := "news-aggregator",
scalaVersion := "2.13.2"
)
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "1.0.0-RC20",
"dev.zio" %% "zio-streams" % "1.0.0-RC20",
"com.softwaremill.sttp.client" %% "core" % "2.1.5",
"com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.1.5",
"io.circe" %% "circe-parser" % "0.13.0",
"org.scala-lang.modules" %% "scala-xml" % "1.2.0")
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-language:implicitConversions",
"-language:higherKinds",
"-language:postfixOps"
)
assemblyJarName in assembly := "news-aggregator.jar"
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case "reference.conf" => MergeStrategy.concat
case x => MergeStrategy.first
}
enablePlugins(DockerPlugin)
dockerfile in docker := {
// The assembly task generates a fat JAR file
val artifact: File = assembly.value
val artifactTargetPath = s"/app/${artifact.name}"
new Dockerfile {
from("openjdk:8-jre")
add(artifact, artifactTargetPath)
entryPoint("java", "-jar", artifactTargetPath)
}
}
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.10.3")