-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sc
148 lines (104 loc) · 3.64 KB
/
build.sc
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
import mill.scalalib.{DepSyntax, PublishModule, SbtModule}
import mill.scalalib.publish.{Developer, License, PomSettings, VersionControl}
trait External extends SbtModule with PublishModule {
def scalaVersion = "2.11.8"
def publishVersion = "0.8.5-SNAPSHOT"
def pomSettings = PomSettings(
description = artifactName(),
organization = "io.gearpump",
url = "https://github.com/gearpump/gearpump-externals",
licenses = Seq(License.`Apache-2.0`),
versionControl = VersionControl.github("gearpump", "gearpump-externals"),
developers = Seq(
Developer("gearpump", "Gearpump", "https://github.com/gearpump")
)
)
val gearpumpVersion = "0.8.5-SNAPSHOT"
val gearpumpDeps = Agg(
ivy"org.apache.gearpump::gearpump-core:$gearpumpVersion",
ivy"org.apache.gearpump::gearpump-streaming:$gearpumpVersion"
)
def compileIvyDeps = gearpumpDeps
def scalaLibraryIvyDeps = T { Agg.empty }
trait test extends Tests {
def ivyDeps = gearpumpDeps ++ Agg(
ivy"com.typesafe.akka::akka-testkit:2.5.18",
ivy"org.scalatest::scalatest:2.2.0",
ivy"org.scalacheck::scalacheck:1.11.3",
ivy"org.mockito:mockito-core:1.10.17"
)
def testFrameworks = Seq("org.scalatest.tools.Framework")
}
}
object hadoopfs extends External {
val hadoopVersion = "2.6.0"
override def artifactName = "gearpump-externals-hadoopfs"
def compileIvyDeps = super.compileIvyDeps() ++ Agg(
ivy"org.apache.hadoop:hadoop-common:$hadoopVersion",
ivy"org.apache.hadoop:hadoop-hdfs:$hadoopVersion"
)
object test extends super.test {
def ivyDeps = super.ivyDeps() ++ Agg(
ivy"org.apache.hadoop:hadoop-common:$hadoopVersion"
)
}
}
object hbase extends External {
override def artifactName = "gearpump-externals-hbase"
val hadoopVersion = "2.6.0"
val hbaseVersion = "1.0.0"
val jacksonVersion = "1.9.13"
def compileIvyDeps = super.compileIvyDeps() ++ Agg(
ivy"org.apache.hadoop:hadoop-common:$hadoopVersion",
ivy"org.apache.hadoop:hadoop-hdfs:$hadoopVersion",
ivy"org.apache.hadoop:hadoop-mapreduce-client-core:$hadoopVersion",
ivy"org.codehaus.jackson:jackson-core-asl:$jacksonVersion",
ivy"org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion",
)
def ivyDeps = Agg(
ivy"org.apache.hbase:hbase-client:$hbaseVersion",
ivy"org.apache.hbase:hbase-common:$hbaseVersion"
)
object test extends super.test
}
object kafka extends External {
override def artifactName = "gearpump-externals-kafka"
val kafkaVersion = "0.8.2.1"
def ivyDeps = Agg(
ivy"org.apache.kafka::kafka:$kafkaVersion",
ivy"com.twitter::bijection-core:0.8.0",
)
object test extends super.test {
def ivyDeps = super.ivyDeps() ++ Agg(
ivy"org.apache.kafka::kafka:$kafkaVersion;classifier=test",
ivy"org.apache.gearpump::gearpump-core:$gearpumpVersion;classifier=tests"
)
}
}
object kudu extends External {
override def artifactName = "gearpump-externals-kudu"
def ivyDeps = Agg(
ivy"org.apache.kudu:kudu-client:1.7.0"
)
object test extends super.test
}
object monoid extends External {
override def artifactName = "gearpump-externals-monoid"
def ivyDeps = Agg(
ivy"com.twitter::algebird-core:0.13.5"
)
}
object serializer extends External {
override def artifactName = "gearpump-externals-serializer"
def ivyDeps = Agg(
ivy"com.twitter::chill-bijection:0.6.0"
.excludeOrg("com.esotericsoftware.kryo", "com.esotericsoftware.minlog")
)
}
object twitter extends External {
override def artifactName = "gearpump-externals-twitter"
def ivyDeps = Agg(
ivy"org.twitter4j:twitter4j-stream:4.0.4"
)
object test extends super.test
}