-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
89 lines (82 loc) · 2.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import sbt._
import Keys.{libraryDependencies, _}
import com.typesafe.sbt.packager.docker.DockerPermissionStrategy
name := "hookla"
version := "0.1"
scalaVersion := "2.13.8"
lazy val hookla = (project in file("."))
.enablePlugins(DockerPlugin, LauncherJarPlugin)
.settings(dockerExposedPorts := Seq(8443))
.settings(dockerRepository := Some("ghcr.io"))
.settings(dockerUsername := Some("widgetbot-io"))
.settings(packageName in Docker := "hookla")
.settings(dockerUpdateLatest := true)
.settings(dockerBaseImage := "gcr.io/distroless/java:11")
.settings(daemonUserUid in Docker := None)
.settings(daemonUser in Docker := "root")
.settings(dockerPermissionStrategy := DockerPermissionStrategy.None)
.settings(
dockerEntrypoint := Seq(
"java",
"-Xms1024m",
"-Xmx1024m",
"-XX:+AlwaysPreTouch",
"-Dfile.encoding=UTF-8",
"-jar",
s"/opt/docker/lib/${(artifactPath in packageJavaLauncherJar).value.getName}"
)
)
.settings(dockerCmd := Seq.empty)
//////////////////////////////////////////////////////////////////
//////////////////////// DEPENDENCIES ////////////////////////
//////////////////////////////////////////////////////////////////
val circeConfVersion = "0.8.0"
val twitterVersion = "20.3.0"
val circeVersion = "0.13.0"
val akkaVersion = "2.6.6"
val log4sVersion = "1.8.2"
val finchVersion = "0.32.1"
val guiceScalaVersion = "4.2.10"
val guiceVersion = "4.2.3"
val flywayVersion = "5.1.0"
libraryDependencies ++= Seq(
"com.github.finagle" %% "finchx-core" % finchVersion,
"com.github.finagle" %% "finchx-circe" % finchVersion,
"com.twitter" %% "twitter-server" % twitterVersion,
"org.log4s" %% "log4s" % log4sVersion,
"ch.qos.logback" % "logback-classic" % "1.2.3",
"net.katsstuff" %% "ackcord-core" % "0.17.1",
// Database
"org.flywaydb" % "flyway-core" % flywayVersion,
"org.postgresql" % "postgresql" % "9.3-1102-jdbc41",
"io.getquill" %% "quill-async-postgres" % "3.5.2",
// Circe
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"io.circe" %% "circe-config" % circeConfVersion,
// Enumeratum
"com.beachape" %% "enumeratum" % "1.5.15",
"com.beachape" %% "enumeratum-circe" % "1.5.23",
// MacWire stuff
"com.softwaremill.macwire" %% "macros" % "2.3.7" % "provided",
"com.softwaremill.macwire" %% "macrosakka" % "2.3.7" % "provided",
"com.softwaremill.macwire" %% "util" % "2.3.7",
"com.softwaremill.macwire" %% "proxy" % "2.3.7"
)
scalacOptions ++= Seq(
"-language:implicitConversions",
"-deprecation",
"-encoding",
"utf-8",
"-explaintypes",
"-feature",
"-unchecked",
"-Xcheckinit",
"-Werror",
"-Wdead-code",
"-Yrangepos",
"-Ymacro-annotations",
"-Ybackend-parallelism",
"6"
)