forked from Kirill5k/kafka-connect-http
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
68 lines (60 loc) · 2.4 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 sbt.Keys.crossScalaVersions
lazy val scala212 = "2.12.10"
lazy val scala213 = "2.13.5"
lazy val supportedScalaVersions = List(scala212, scala213)
ThisBuild / credentials += Credentials(
"emnify/emnify-maven",
"emnify-648956897802.d.codeartifact.eu-west-1.amazonaws.com",
"aws",
sys.env.getOrElse("CODEARTIFACT_AUTH_TOKEN", "Unknown")
)
ThisBuild / scalaVersion := "2.13.5"
ThisBuild / organization := "io.github.kirill5k"
ThisBuild / organizationName := "example"
ThisBuild / resolvers ++= Seq(
Resolver.mavenLocal,
Resolver.sbtPluginRepo("releases"),
"Confluent" at "https://packages.confluent.io/maven/",
"emnify/emnify-maven" at "https://emnify-648956897802.d.codeartifact.eu-west-1.amazonaws.com/maven/emnify-maven/",
)
ThisBuild / publishTo := Some("emnify/emnify-maven" at "https://emnify-648956897802.d.codeartifact.eu-west-1.amazonaws.com/maven/emnify-maven/")
ThisBuild / publishMavenStyle := true
releaseVersionBump := sbtrelease.Version.Bump.Next
releaseCrossBuild := false
lazy val root = (project in file("."))
.settings(
name := "kafka-connect-http",
crossScalaVersions := Nil
)
.aggregate(sink)
lazy val commonSettings = Seq(
organizationName := "Kafka Connect Http",
startYear := Some(2020),
licenses += ("Apache-2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.txt")),
resolvers += "Apache public" at "https://repository.apache.org/content/groups/public/",
scalafmtOnCompile := true,
crossScalaVersions := supportedScalaVersions
)
lazy val sink = (project in file("connectors/sink"))
.settings(commonSettings)
.enablePlugins(BuildInfoPlugin)
.settings(
name := "kafka-connect-http-sink",
moduleName := "kafka-connect-http-sink",
libraryDependencies ++= Dependencies.sink ++ Dependencies.test,
assembly / assemblyJarName := "kafka-connect-http-sink.jar",
assembly / assemblyOption := (assembly / assemblyOption).value.copy(
includeScala = false,
includeDependency = true
),
assembly / assemblyMergeStrategy := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
},
artifact in (Compile, assembly) := {
val art = (artifact in (Compile, assembly)).value
art.withClassifier(Some("assembly"))
},
addArtifact(artifact in (Compile, assembly), assembly)
)
.enablePlugins(AutomateHeaderPlugin)