-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
64 lines (56 loc) · 1.61 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
56
57
58
59
60
61
62
63
64
import Dependencies.Libraries._
import Dependencies.CompilerPlugins._
name := "bootcamp-big-brother"
version := "0.1"
scalaVersion := "2.13.5"
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-Ymacro-annotations"
)
enablePlugins(DockerPlugin)
lazy val slackScalaMorphismModels =
ProjectRef(uri("git://github.com/drewfeelsblue/slack-morphism.git#master"), "slackMorphismModels")
lazy val slackScalaMorphismClient =
ProjectRef(uri("git://github.com/drewfeelsblue/slack-morphism.git#master"), "slackMorphismClient")
lazy val root = project
.in(file("."))
.dependsOn(slackScalaMorphismModels, slackScalaMorphismClient)
.settings(
docker / imageNames := Seq(ImageName(name.value)),
docker / dockerfile := {
val artifact: File = assembly.value
val artifactTargetPath = s"/app/${artifact.name}"
new Dockerfile {
from("openjdk:15")
add(artifact, artifactTargetPath)
entryPoint("java", "-jar", artifactTargetPath)
}
},
assembly / assemblyMergeStrategy := {
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.discard
case _ => MergeStrategy.first
},
libraryDependencies ++= Seq(
compilerPlugin(`kind-projector`),
compilerPlugin(`better-monadic-for`),
postgresJdbc,
flyway,
catsEffect,
http4sDsl,
http4sCirce,
http4sClient,
http4sServer,
pureConfig,
refined,
refinedPureConfig,
skunkCore,
skunkCirce,
newType,
sttp,
scache,
// slackMorphismClient,
log4cats,
logback % Runtime
)
)