forked from apache/samza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
666 lines (584 loc) · 22.2 KB
/
build.gradle
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
buildscript {
repositories {
mavenCentral()
}
apply from: file('gradle/buildscript.gradle'), to: buildscript
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
}
}
apply from: file("gradle/dependency-versions.gradle")
apply from: file("gradle/dependency-versions-scala-" + scalaVersion + ".gradle")
apply from: file("gradle/release.gradle")
apply from: file("gradle/rat.gradle")
apply from: file('gradle/customize.gradle')
rat {
excludes = [
'*.patch',
'**/*.eot',
'**/*.graffle',
'**/*.iml',
'**/*.ipr',
'**/*.iws',
'**/*.json',
'**/*.otf',
'**/*.svg',
'**/*.ttf',
'**/*.woff',
'**/.classpath',
'**/.cache/**',
'**/.git/**',
'**/.gitignore',
'**/.gradle/**',
'**/.idea/**',
'**/.project',
'**/.settings/**',
'**/.DS_Store/**',
'**/bootstrap.css.map',
'**/bootstrap.min.css',
'**/bootstrap.min.js',
'**/build/**',
'**/font-awesome.min.css',
'**/jquery-1.11.1.min.js',
'**/jquery.tablesorter.min.js',
'**/non-responsive.less',
'**/ropa-sans.css',
'**/syntax.css',
'.idea/**',
'.reviewboardrc',
'docs/_site/**',
'docs/sitemap.xml',
'docs/learn/documentation/*/api/javadocs/**',
'docs/Gemfile.lock',
'gradle/wrapper/**',
'gradlew',
'gradlew.bat',
'samza-test/state/**',
'README.md',
'RELEASE.md',
'samza-test/src/main/resources/**',
'samza-hdfs/src/main/resources/**',
'samza-hdfs/src/test/resources/**',
'out/**'
]
}
allprojects {
apply plugin: 'idea'
// For all scala compilation, add extra compiler options, taken from version-specific
// dependency-versions-scala file applied above.
tasks.withType(ScalaCompile) {
scalaCompileOptions.additionalParameters = [ scalaOptions ]
}
}
subprojects {
apply plugin: 'eclipse'
apply plugin: 'project-report'
tasks.withType(Test) {
test {
testLogging {
showStackTraces = true
showExceptions = true
showCauses = true
displayGranularity = maxGranularity
exceptionFormat = 'full'
}
}
}
}
project(':samza-api') {
apply plugin: 'java'
apply plugin: 'checkstyle'
dependencies {
compile "org.slf4j:slf4j-api:$slf4jVersion"
testCompile "junit:junit:$junitVersion"
testCompile "org.mockito:mockito-all:$mockitoVersion"
}
checkstyle {
configFile = new File(rootDir, "checkstyle/checkstyle.xml")
toolVersion = "$checkstyleVersion"
}
}
project(":samza-core_$scalaVersion") {
apply plugin: 'scala'
apply plugin: 'checkstyle'
// Force scala joint compilation
sourceSets.main.scala.srcDir "src/main/java"
sourceSets.test.scala.srcDir "src/test/java"
// Disable the Javac compiler by forcing joint compilation by scalac. This is equivalent to setting
// tasks.compileTestJava.enabled = false
sourceSets.main.java.srcDirs = []
sourceSets.test.java.srcDirs = []
jar {
manifest {
attributes("Implementation-Version": "$version")
}
}
dependencies {
compile project(':samza-api')
compile "com.google.guava:guava:$guavaVersion"
compile "org.scala-lang:scala-library:$scalaLibVersion"
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "net.sf.jopt-simple:jopt-simple:$joptSimpleVersion"
compile "org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion"
compile "org.eclipse.jetty:jetty-webapp:$jettyVersion"
compile "com.101tec:zkclient:$zkClientVersion"
compile "org.apache.commons:commons-collections4:$apacheCommonsCollections4Version"
testCompile project(":samza-api").sourceSets.test.output
testCompile "junit:junit:$junitVersion"
testCompile "org.mockito:mockito-all:$mockitoVersion"
testCompile "org.scalatest:scalatest_$scalaVersion:$scalaTestVersion"
}
checkstyle {
configFile = new File(rootDir, "checkstyle/checkstyle.xml")
toolVersion = "$checkstyleVersion"
}
}
project(":samza-autoscaling_$scalaVersion") {
apply plugin: 'scala'
apply plugin: 'checkstyle'
// Force scala joint compilation
sourceSets.main.scala.srcDir "src/main/java"
sourceSets.test.scala.srcDir "src/test/java"
// Disable the Javac compiler by forcing joint compilation by scalac. This is equivalent to setting
// tasks.compileTestJava.enabled = false
sourceSets.main.java.srcDirs = []
sourceSets.test.java.srcDirs = []
dependencies {
compile project(':samza-api')
compile project(":samza-core_$scalaVersion")
compile "org.scala-lang:scala-library:$scalaLibVersion"
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "net.sf.jopt-simple:jopt-simple:$joptSimpleVersion"
compile "org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion"
compile "org.eclipse.jetty:jetty-webapp:$jettyVersion"
compile("org.apache.hadoop:hadoop-yarn-client:$yarnVersion") {
exclude module: 'slf4j-log4j12'
exclude module: 'servlet-api'
}
compile("org.apache.hadoop:hadoop-common:$yarnVersion") {
exclude module: 'slf4j-log4j12'
exclude module: 'servlet-api'
}
compile "org.apache.httpcomponents:httpclient:$httpClientVersion"
testCompile "junit:junit:$junitVersion"
testCompile "org.mockito:mockito-all:$mockitoVersion"
testCompile "org.scalatest:scalatest_$scalaVersion:$scalaTestVersion"
}
checkstyle {
configFile = new File(rootDir, "checkstyle/checkstyle.xml")
toolVersion = "$checkstyleVersion"
}
}
project(':samza-elasticsearch') {
apply plugin: 'java'
dependencies {
compile project(':samza-api')
compile project(":samza-core_$scalaVersion")
compile "org.elasticsearch:elasticsearch:$elasticsearchVersion"
compile "com.google.guava:guava:$guavaVersion"
compile "org.slf4j:slf4j-api:$slf4jVersion"
testCompile "junit:junit:$junitVersion"
testCompile "org.mockito:mockito-all:$mockitoVersion"
// Logging in tests is good.
testRuntime "org.slf4j:slf4j-simple:$slf4jVersion"
}
}
project(":samza-kafka_$scalaVersion") {
apply plugin: 'scala'
// Force scala joint compilation
sourceSets.main.scala.srcDir "src/main/java"
sourceSets.test.scala.srcDir "src/test/java"
// Disable the Javac compiler by forcing joint compilation by scalac. This is equivalent to setting
// tasks.compileTestJava.enabled = false
sourceSets.main.java.srcDirs = []
sourceSets.test.java.srcDirs = []
configurations {
// Remove transitive dependencies from Zookeeper that we don't want.
compile.exclude group: 'javax.jms', module: 'jms'
compile.exclude group: 'com.sun.jdmk', module: 'jmxtools'
compile.exclude group: 'com.sun.jmx', module: 'jmxri'
}
dependencies {
compile project(':samza-api')
compile project(":samza-core_$scalaVersion")
compile "org.scala-lang:scala-library:$scalaLibVersion"
compile "com.101tec:zkclient:$zkClientVersion"
compile "org.apache.zookeeper:zookeeper:$zookeeperVersion"
compile "org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion"
compile "org.apache.kafka:kafka_$scalaVersion:$kafkaVersion"
compile "org.apache.kafka:kafka-clients:$kafkaVersion"
testCompile "org.apache.kafka:kafka_$scalaVersion:$kafkaVersion:test"
testCompile "org.apache.kafka:kafka-clients:$kafkaVersion:test"
testCompile "junit:junit:$junitVersion"
testCompile "org.mockito:mockito-all:$mockitoVersion"
testCompile "org.scalatest:scalatest_$scalaVersion:$scalaTestVersion"
testCompile project(":samza-core_$scalaVersion").sourceSets.test.output
// Logging in tests is good.
testRuntime "org.slf4j:slf4j-simple:$slf4jVersion"
}
test {
// Bump up the heap so we can start ZooKeeper and Kafka brokers.
minHeapSize = "1560m"
maxHeapSize = "1560m"
jvmArgs = ["-XX:+UseConcMarkSweepGC", "-server"]
// There appear to be issues between TestKafkaSystemAdmin and
// TestKafkaCheckpointManager both running brokeres and ZK. Restarting the
// gradle worker after every test clears things up. These tests should be
// moved to the integration test suite.
forkEvery = 1
}
}
project(':samza-log4j') {
apply plugin: 'java'
apply plugin: 'checkstyle'
dependencies {
compile "log4j:log4j:$log4jVersion"
compile project(':samza-api')
compile project(":samza-core_$scalaVersion")
compile "org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion"
testCompile "junit:junit:$junitVersion"
}
checkstyle {
configFile = new File(rootDir, "checkstyle/checkstyle.xml")
toolVersion = "$checkstyleVersion"
}
}
project(":samza-yarn_$scalaVersion") {
apply plugin: 'scala'
apply plugin: 'lesscss'
// Force scala joint compilation
sourceSets.main.scala.srcDir "src/main/java"
sourceSets.test.scala.srcDir "src/test/java"
// Disable the Javac compiler by forcing joint compilation by scalac. This is equivalent to setting
// tasks.compileTestJava.enabled = false
sourceSets.main.java.srcDirs = []
sourceSets.test.java.srcDirs = []
dependencies {
compile project(':samza-api')
compile project(":samza-core_$scalaVersion")
compile "org.scala-lang:scala-library:$scalaLibVersion"
compile "org.scala-lang:scala-compiler:$scalaLibVersion"
compile "org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion"
compile "commons-httpclient:commons-httpclient:$commonsHttpClientVersion"
compile("org.apache.hadoop:hadoop-yarn-api:$yarnVersion") {
exclude module: 'slf4j-log4j12'
}
compile("org.apache.hadoop:hadoop-yarn-common:$yarnVersion") {
exclude module: 'slf4j-log4j12'
exclude module: 'servlet-api'
}
compile("org.apache.hadoop:hadoop-yarn-client:$yarnVersion") {
exclude module: 'slf4j-log4j12'
exclude module: 'servlet-api'
}
compile("org.apache.hadoop:hadoop-common:$yarnVersion") {
exclude module: 'slf4j-log4j12'
exclude module: 'servlet-api'
// Exclude because YARN's 3.4.5 ZK version is incompatbile with Kafka's 3.3.4.
exclude module: 'zookeeper'
}
compile("org.apache.hadoop:hadoop-hdfs:$yarnVersion") {
exclude module: 'slf4j-log4j12'
exclude module: 'servlet-api'
}
compile("org.scalatra:scalatra_$scalaVersion:$scalatraVersion") {
exclude module: 'scala-compiler'
exclude module: 'slf4j-api'
}
compile("org.scalatra:scalatra-scalate_$scalaVersion:$scalatraVersion") {
exclude module: 'scala-compiler'
exclude module: 'slf4j-api'
}
compile "joda-time:joda-time:$jodaTimeVersion"
compile "org.apache.zookeeper:zookeeper:$zookeeperVersion"
testCompile "junit:junit:$junitVersion"
testCompile "org.mockito:mockito-all:$mockitoVersion"
testCompile project(":samza-core_$scalaVersion").sourceSets.test.output
testCompile "org.scalatest:scalatest_$scalaVersion:$scalaTestVersion"
}
repositories {
maven {
url "http://repo.typesafe.com/typesafe/releases"
}
}
lesscss {
source = fileTree('src/main/less') {
include 'main.less'
}
dest = "$buildDir/resources/main/scalate/css"
}
jar.dependsOn("lesscss")
}
project(":samza-shell") {
apply plugin: 'java'
configurations {
gradleShell
}
dependencies {
gradleShell project(":samza-core_$scalaVersion")
gradleShell project(":samza-kafka_$scalaVersion")
gradleShell project(":samza-test_$scalaVersion")
gradleShell project(":samza-yarn_$scalaVersion")
gradleShell "org.slf4j:slf4j-log4j12:$slf4jVersion"
gradleShell "log4j:log4j:1.2.16"
}
task shellTarGz(type: Tar) {
compression = Compression.GZIP
classifier = 'dist'
from 'src/main/bash'
from 'src/main/resources'
}
artifacts {
archives(shellTarGz) {
name 'samza-shell'
classifier 'dist'
}
}
// Usage: ./gradlew samza-shell:runJob \
// -PconfigPath=file:///path/to/job/config.properties
task runJob(type:JavaExec) {
description 'To run a job (defined in a properties file)'
main = 'org.apache.samza.job.JobRunner'
classpath = configurations.gradleShell
if (project.hasProperty('configPath')) args += ['--config-path', configPath]
jvmArgs = ["-Dlog4j.configuration=file:src/main/resources/log4j-console.xml"]
}
// Usage: ./gradlew samza-shell:checkpointTool \
// -PconfigPath=file:///path/to/job/config.properties -PnewOffsets=file:///path/to/new/offsets.properties
task checkpointTool(type:JavaExec) {
description 'Command-line tool to inspect and manipulate the job’s checkpoint'
main = 'org.apache.samza.checkpoint.CheckpointTool'
classpath = configurations.gradleShell
if (project.hasProperty('configPath')) args += ['--config-path', configPath]
if (project.hasProperty('newOffsets')) args += ['--new-offsets', newOffsets]
jvmArgs = ["-Dlog4j.configuration=file:src/main/resources/log4j-console.xml"]
}
// Usage: ./gradlew samza-shell:kvPerformanceTest
// -PconfigPath=file:///path/to/job/config.properties
task kvPerformanceTest(type:JavaExec) {
description 'Command-line tool to run key-value performance tests'
main = 'org.apache.samza.test.performance.TestKeyValuePerformance'
classpath = configurations.gradleShell
if (project.hasProperty('configPath')) args += ['--config-path', configPath]
jvmArgs = ["-Dlog4j.configuration=file:src/main/resources/log4j-console.xml"]
}
}
project(":samza-kv_$scalaVersion") {
apply plugin: 'scala'
apply plugin: 'checkstyle'
// Force scala joint compilation
sourceSets.main.scala.srcDir "src/main/java"
sourceSets.test.scala.srcDir "src/test/java"
// Disable the Javac compiler by forcing joint compilation by scalac. This is equivalent to setting
// tasks.compileTestJava.enabled = false
sourceSets.main.java.srcDirs = []
sourceSets.test.java.srcDirs = []
dependencies {
compile project(':samza-api')
compile project(":samza-core_$scalaVersion")
compile "org.scala-lang:scala-library:$scalaLibVersion"
testCompile "junit:junit:$junitVersion"
testCompile "org.mockito:mockito-all:$mockitoVersion"
}
checkstyle {
configFile = new File(rootDir, "checkstyle/checkstyle.xml")
toolVersion = "$checkstyleVersion"
}
}
project(":samza-kv-inmemory_$scalaVersion") {
apply plugin: 'scala'
dependencies {
compile project(':samza-api')
compile project(":samza-core_$scalaVersion")
compile project(":samza-kv_$scalaVersion")
compile "org.scala-lang:scala-library:$scalaLibVersion"
compile "com.google.guava:guava:$guavaVersion"
testCompile "junit:junit:$junitVersion"
}
}
project(":samza-kv-rocksdb_$scalaVersion") {
apply plugin: 'scala'
// Force scala joint compilation
sourceSets.main.scala.srcDir "src/main/java"
sourceSets.test.scala.srcDir "src/test/java"
// Disable the Javac compiler by forcing joint compilation by scalac. This is equivalent to setting
// tasks.compileTestJava.enabled = false
sourceSets.main.java.srcDirs = []
sourceSets.test.java.srcDirs = []
dependencies {
compile project(':samza-api')
compile project(":samza-core_$scalaVersion")
compile project(":samza-kv_$scalaVersion")
compile "org.scala-lang:scala-library:$scalaLibVersion"
compile "org.rocksdb:rocksdbjni:$rocksdbVersion"
testCompile "junit:junit:$junitVersion"
testCompile "org.scalatest:scalatest_$scalaVersion:$scalaTestVersion"
}
}
project(":samza-hdfs_$scalaVersion") {
apply plugin: 'scala'
// Force scala joint compilation
sourceSets.main.scala.srcDir "src/main/java"
sourceSets.test.scala.srcDir "src/test/java"
sourceSets.main.java.srcDirs = []
dependencies {
compile project(':samza-api')
compile project(":samza-core_$scalaVersion")
compile project(":samza-kafka_$scalaVersion")
// currently hdfs system producer/consumer do depend on yarn for two things:
// 1. staging directory 2. security
// SAMZA-1032 to solve the staging directory dependency
compile project(":samza-yarn_$scalaVersion")
compile "org.scala-lang:scala-library:$scalaLibVersion"
compile("org.apache.hadoop:hadoop-hdfs:$yarnVersion") {
exclude module: 'slf4j-log4j12'
exclude module: 'servlet-api'
}
compile("org.apache.hadoop:hadoop-common:$yarnVersion") {
exclude module: 'slf4j-log4j12'
exclude module: 'servlet-api'
exclude module: 'zookeeper'
}
testCompile "junit:junit:$junitVersion"
testCompile "org.scalatest:scalatest_$scalaVersion:$scalaTestVersion"
testCompile "org.apache.hadoop:hadoop-minicluster:$yarnVersion"
}
}
project(":samza-rest") {
apply plugin: 'java'
dependencies {
compile project(":samza-shell")
compile project(":samza-core_$scalaVersion")
runtime "org.slf4j:slf4j-log4j12:$slf4jVersion"
compile "com.google.guava:guava:$guavaVersion"
compile "org.glassfish.jersey.core:jersey-server:$jerseyVersion"
compile "org.glassfish.jersey.containers:jersey-container-servlet-core:$jerseyVersion"
compile "org.glassfish.jersey.containers:jersey-container-jetty-http:$jerseyVersion"
compile "org.glassfish.jersey.media:jersey-media-moxy:$jerseyVersion"
compile "org.eclipse.jetty.aggregate:jetty-all:$jettyVersion"
compile "commons-httpclient:commons-httpclient:$commonsHttpClientVersion"
compile("org.apache.hadoop:hadoop-yarn-client:$yarnVersion") {
exclude module: 'slf4j-log4j12'
exclude module: 'servlet-api'
exclude group: 'com.sun.jersey'
}
runtime("org.apache.hadoop:hadoop-yarn-api:$yarnVersion") {
exclude module: 'slf4j-log4j12'
exclude module: 'servlet-api'
exclude group: 'com.sun.jersey'
}
testCompile "junit:junit:$junitVersion"
testCompile "org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-grizzly2:$jerseyVersion"
testCompile "org.mockito:mockito-all:$mockitoVersion"
}
tasks.create(name: "releaseRestServiceTar", type: Tar) {
description 'Build a tarball containing the samza-rest component and its dependencies'
compression = Compression.GZIP
from(file("$projectDir/src/main/config")) { into "config/" }
from(file("$projectDir/src/main/resources/log4j.xml")) { into "bin/" }
from(file("$projectDir/src/main/bash/run-samza-rest-service.sh")) { into "bin/" }
from(project(':samza-shell').file("src/main/bash/run-class.sh")) { into "bin/" }
from '../LICENSE'
from '../NOTICE'
from(configurations.runtime) { into("lib/") }
from(jar) { into("lib/") }
}
tasks.create(name: "restTarGz", type: Tar) {
description 'Build a tarball containing the samza-rest supplementary files'
compression = Compression.GZIP
from 'src/main/bash'
from 'src/main/resources'
from(project(':samza-shell').file("src/main/bash/run-class.sh"))
}
artifacts {
archives(restTarGz) {
name 'samza-rest-scripts'
classifier 'dist'
}
}
}
project(":samza-test_$scalaVersion") {
apply plugin: 'scala'
apply plugin: 'checkstyle'
// Force scala joint compilation
sourceSets.main.scala.srcDir "src/main/java"
sourceSets.test.scala.srcDir "src/test/java"
// Disable the Javac compiler by forcing joint compilation by scalac. This is equivalent to setting
// tasks.compileTestJava.enabled = false
sourceSets.main.java.srcDirs = []
sourceSets.test.java.srcDirs = []
configurations {
// Remove transitive dependencies from Zookeeper that we don't want.
compile.exclude group: 'javax.jms', module: 'jms'
compile.exclude group: 'com.sun.jdmk', module: 'jmxtools'
compile.exclude group: 'com.sun.jmx', module: 'jmxri'
}
dependencies {
compile project(':samza-api')
compile project(":samza-kv-inmemory_$scalaVersion")
compile project(":samza-kv-rocksdb_$scalaVersion")
compile project(":samza-core_$scalaVersion")
runtime project(":samza-log4j")
runtime project(":samza-yarn_$scalaVersion")
runtime project(":samza-kafka_$scalaVersion")
runtime project(":samza-hdfs_$scalaVersion")
compile "org.scala-lang:scala-library:$scalaLibVersion"
compile "net.sf.jopt-simple:jopt-simple:$joptSimpleVersion"
compile "javax.mail:mail:1.4"
compile "junit:junit:$junitVersion"
compile "org.apache.kafka:kafka_$scalaVersion:$kafkaVersion"
testCompile "org.apache.kafka:kafka_$scalaVersion:$kafkaVersion:test"
testCompile "com.101tec:zkclient:$zkClientVersion"
testCompile project(":samza-kafka_$scalaVersion")
testCompile "org.apache.kafka:kafka_$scalaVersion:$kafkaVersion:test"
testCompile "org.apache.kafka:kafka-clients:$kafkaVersion:test"
testCompile project(":samza-core_$scalaVersion").sourceSets.test.output
testCompile "org.scalatest:scalatest_$scalaVersion:$scalaTestVersion"
testRuntime "org.slf4j:slf4j-simple:$slf4jVersion"
}
test {
// Bump up the heap so we can run KV store tests.
minHeapSize = "1560m"
maxHeapSize = "1560m"
jvmArgs = ["-XX:+UseConcMarkSweepGC", "-server"]
}
checkstyle {
configFile = new File(rootDir, "checkstyle/checkstyle.xml")
toolVersion = "$checkstyleVersion"
}
tasks.create(name: "releaseTestJobs", dependsOn: configurations.archives.artifacts, type: Tar) {
description 'Build an integration test tarball'
compression = Compression.GZIP
from(file("$projectDir/src/main/config")) { into "config/" }
from(file("$projectDir/src/main/resources")) { into "lib/" }
from(project(':samza-shell').file("src/main/bash")) { into "bin/" }
from(file("$projectDir/src/main/python/ghostface_killah.py")) { into "bin/"}
from(project(':samza-shell').file("src/main/resources")) { into "lib/" }
from(project(':samza-shell').file("src/main/resources/log4j-console.xml")) { into "bin/" }
from '../LICENSE'
from '../NOTICE'
from(configurations.runtime) { into("lib/") }
from(configurations.archives.artifacts.files) { into("lib/") }
}
}