forked from mardambey/mypipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
127 lines (112 loc) · 3.24 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import Dependencies._
lazy val commonSettings = Seq(
name := "mypipe",
version := "1.0.0",
organization := "mypipe",
scalaVersion := "2.11.7",
exportJars := true,
parallelExecution in ThisBuild := false,
resolvers ++= Seq(Resolver.mavenLocal,
"Sonatype OSS Releases" at "http://oss.sonatype.org/content/repositories/releases/",
"Sonatype OSS Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/",
"Typesafe Snapshots" at "http://repo.typesafe.com/typesafe/snapshots/",
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
"Twitter Repository" at "http://maven.twttr.com/")
)
lazy val apiDependencies = Seq(
akkaActor,
akkaAgent,
commonsLang,
jsqlParser,
jug,
logback,
mysqlAsync,
mysqlBinlogConnectorJava,
scalaCompiler,
scalaReflect,
scalaTest,
slf4jApi,
typesafeConfig
)
lazy val runnerDependencies = Seq(
typesafeConfig
)
lazy val snapshotterDependencies = Seq(
logback,
mysqlAsync,
scalaTest,
scopt,
typesafeConfig
)
lazy val producersDependencies = Seq(
akkaActor,
typesafeConfig
)
lazy val avroDependencies = Seq(
avro,
guava,
xinject,
jerseyServlet,
jerseyCore,
jsr305,
rsApi,
scalaTest,
scalaReflect,
schemaRepoBundle
)
lazy val kafkaDependencies = Seq(
kafka,
scalaTest,
schemaRepoBundle
)
lazy val root = (project in file(".")).
settings(commonSettings: _*).
settings(name := "mypipe").
aggregate(api, producers, runner, snapshotter, myavro, mykafka)
lazy val runner = (project in file("mypipe-runner")).
settings(commonSettings: _*).
settings(
name := "runner",
fork in run := false,
libraryDependencies ++= runnerDependencies).
settings(Format.settings) dependsOn(api, producers, myavro, mykafka)
lazy val snapshotter = (project in file("mypipe-snapshotter")).
settings(commonSettings: _*).
settings(
name := "snapshotter",
fork in run := false,
libraryDependencies ++= snapshotterDependencies).
settings(Format.settings) dependsOn(api % "compile->compile;test->test", producers, myavro, mykafka, runner)
lazy val producers = (project in file("mypipe-producers")).
settings(commonSettings: _*).
settings(
name := "producers",
fork in run := false,
libraryDependencies ++= producersDependencies).
settings(Format.settings) dependsOn(api)
lazy val api = (project in file("mypipe-api")).
settings(commonSettings: _*).
settings(
name := "api",
fork in run := false,
libraryDependencies ++= apiDependencies,
parallelExecution in Test := false).
settings(Format.settings)
lazy val myavro = (project in file("mypipe-avro")).
settings(commonSettings: _*).
settings(
name := "myavro",
fork in run := false,
libraryDependencies ++= avroDependencies,
parallelExecution in Test := false).
settings(AvroCompiler.settingsCompile).
settings(Format.settings) dependsOn(api % "compile->compile;test->test")
lazy val mykafka = (project in file("mypipe-kafka")).
settings(commonSettings: _*).
settings(
name := "mykafka",
fork in run := false,
libraryDependencies ++= kafkaDependencies,
parallelExecution in Test := false).
settings(AvroCompiler.settingsTest).
settings(Format.settings) dependsOn(api % "compile->compile;test->test", myavro)