-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
68 lines (63 loc) · 1.99 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
import Dependencies._
import com.amazonaws.regions.{Region, Regions}
import com.typesafe.sbt.packager.docker.DockerPlugin.autoImport._
lazy val dockerBuildxSettings = Seq(
name := "sumologic-kafka-push",
organization := "com.sumologic.kafkapush",
scalaVersion := Version.Scala,
organizationName := "SumoLogic",
description := "Push from Apache Kafka to Sumo Logic",
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "info",
scalacOptions ++= Seq(
"-encoding", "UTF-8",
"-target:jvm-1.8",
"-Xlog-reflective-calls",
"-Xlint",
"-Ywarn-unused",
"-deprecation",
"-feature",
"-language:_",
"-unchecked"
),
scalacOptions in(Test, console) := (scalacOptions in(Compile, console)).value,
libraryDependencies ++= Vector(
TypesafeConfig,
AkkaTyped,
AkkaSlf4j,
AkkaStreamTyped,
AkkaHttp,
ScalaTest,
AkkaTypedTestKit,
AkkaHttp,
Logback,
Json4sNative,
Json4sExt,
AkkaHttpJson4s,
AkkaKafka,
ApacheKafkaClient,
PrometheusAkkaHttp,
PrometheusClient,
Re2j,
Guava,
Skuber,
ScalacacheCore,
ScalacacheGuava,
JsonPath,
Mockito
),
daemonUser in Docker := "sumo",
daemonGroup in Docker := "sumo",
daemonUserUid in Docker := Some("1000"),
daemonGroupGid in Docker := Some("1000"),
dockerExposedPorts in Docker ++= Seq(8080),
dockerRepository := Some("public.ecr.aws/sumologic"),
dockerBaseImage := "public.ecr.aws/sumologic/sumologic-kafka-push:focal-corretto-11-multiarch"
)
lazy val sumologicKafkaPush =
Project(id = "sumologic-kafka-push", base = file("."))
.enablePlugins(JavaAppPackaging)
.enablePlugins(AshScriptPlugin)
.enablePlugins(BuildInfoPlugin)
.enablePlugins(DockerPlugin)
.settings(dockerBuildxSettings)