-
Notifications
You must be signed in to change notification settings - Fork 35
/
build.sbt
68 lines (61 loc) · 1.84 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 Settings.modulesSettings
import Settings.secretProviderDeps
import Settings.AssemblyConfigurator
import Settings.MavenDescriptorConfigurator
import Settings.testSinkDeps
import Settings.scala213
import sbt.Project.projectToLocalProject
name := "secret-provider"
javacOptions ++= Seq("--release", "11")
javaOptions ++= Seq("-Xms512M", "-Xmx2048M")
lazy val subProjects: Seq[Project] = Seq(
`test-sink`,
`secret-provider`,
)
lazy val subProjectsRefs: Seq[ProjectReference] =
subProjects.map(projectToLocalProject)
lazy val root = (project in file("."))
.settings(
scalaVersion := scala213,
publish := {},
publishArtifact := false,
name := "secret-provider",
)
.aggregate(
subProjectsRefs: _*,
)
.disablePlugins(AssemblyPlugin)
lazy val `secret-provider` = (project in file("secret-provider"))
.settings(
modulesSettings ++
Seq(
name := "secret-provider",
description := "Kafka Connect compatible connectors to move data between Kafka and popular data stores",
publish / skip := true,
libraryDependencies ++= secretProviderDeps,
),
)
.configureAssembly()
.configureMavenDescriptor()
.configs(IntegrationTest)
.settings(Defaults.itSettings: _*)
lazy val `test-sink` = (project in file("test-sink"))
.settings(
modulesSettings ++
Seq(
name := "test-sink",
description := "Kafka Connect compatible connectors to move data between Kafka and popular data stores",
publish / skip := true,
libraryDependencies ++= testSinkDeps,
),
)
.configureAssembly()
addCommandAlias(
"validateAll",
";scalafmtCheck;scalafmtSbtCheck;test:scalafmtCheck;it:scalafmtCheck;",
)
addCommandAlias(
"formatAll",
";scalafmt;scalafmtSbt;test:scalafmt;it:scalafmt;",
)
val generateMetaInfMaven = taskKey[Unit]("Generate META-INF/maven directory")