forked from spring-attic/spring-xd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
1089 lines (927 loc) · 32.1 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
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
description = 'Spring XD'
apply plugin: 'base'
apply plugin: 'idea'
buildscript {
repositories {
maven { url "http://repo.spring.io/plugins-snapshot" }
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.4.RELEASE")
classpath("org.springframework.build.gradle:propdeps-plugin:0.0.7")
classpath 'com.moowork.gradle:gradle-grunt-plugin:0.4'
classpath 'me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1'
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.10.0'
}
}
ext {
linkHomepage = 'https://github.com/spring-projects/spring-xd'
linkCi = 'https://build.spring.io/browse/XD'
linkIssue = 'https://jira.spring.io/browse/XD'
linkScmUrl = 'https://github.com/spring-projects/spring-xd'
linkScmConnection = 'https://github.com/spring-projects/spring-xd.git'
linkScmDevConnection = '[email protected]:spring-projects/spring-xd.git'
javadocLinks = [
"http://docs.spring.io/spring-xd/docs/1.0.x/api/"
] as String[]
nonJavaProjects = [
project(':redis'),
project(':spring-xd-ui')
]
moduleProjects = subprojects.findAll { project -> project.path.startsWith(':modules')}
javaProjects = subprojects - (moduleProjects + nonJavaProjects)
coverageProjects = [
'spring-xd-dirt',
'spring-xd-analytics',
'spring-xd-analytics-ml',
'spring-xd-tuple',
'spring-xd-module',
'spring-xd-rest-client',
'spring-xd-rest-domain',
'spring-xd-shell',
'spring-xd-hadoop',
'spring-xd-extension-http',
'spring-xd-extension-jdbc',
'spring-xd-extension-reactor',
'spring-xd-extension-gemfire'
].collect { p -> project(p) }
}
// custom class to store the SingleNode server process
class SingleNodeServerProcess {
Process process
}
allprojects {
group = 'org.springframework.xd'
repositories {
mavenCentral()
//maven { url 'http://repo.spring.io/libs-snapshot' }
maven { url 'http://repo.spring.io/milestone' }
//maven { url 'http://repo.spring.io/snapshot' }
maven { url 'http://repo.spring.io/libs-milestone' }
maven { url 'http://repo.spring.io/plugins-release' }
maven { url 'http://repo.spring.io/plugins-snapshot' }
maven { url 'https://repo.eclipse.org/content/repositories/paho-releases' }
}
}
ext {
// Not in IO
activemqVersion = '5.6.0'
apacheFtpServerVersion = '1.0.6'
args4jVersion = '2.0.16'
curatorVersion = '2.6.0'
equalsverifierVersion = '1.1.3'
ftpServerVersion = '1.0.6'
greenmailVersion = '1.3.1b'
hamcrestDateVersion = '0.9.3'
httpClientVersion = '4.2.5'
jcloudsVersion = '1.7.0'
oracleToolsVersion = '1.2.2'
platformVersion = '1.0.1.RELEASE'
postgresqlVersion = '9.2-1002-jdbc4'
splunkVersion = '1.3.0'
springBatchAdminMgrVersion = '1.3.0.RELEASE'
springIntegrationSplunkVersion = '1.1.0.RELEASE'
springShellVersion = '1.1.0.RELEASE'
zookeeperVersion = '3.4.6'
// Also in IO
nettyVersion = '3.7.0.Final' // N.B. Reactor depends on Netty 4
oldGuavaVersion = '15.0' // This is only used by spring-xd-integration-test, IO uses version 17.0
guavaVersion = '16.0.1'
springDataHadoopBase = '2.0.2.RELEASE'
singleNodeServerProcess = new SingleNodeServerProcess()
}
apply from: 'gradle/build-common.gradle'
configure(javaProjects) { subproject ->
apply plugin: 'groovy'
apply from: "${rootProject.projectDir}/publish-maven.gradle"
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'javadocHotfix'
apply plugin: 'spring-boot'
apply plugin: 'propdeps'
apply plugin: 'propdeps-maven'
apply plugin: 'propdeps-idea'
apply plugin: 'propdeps-eclipse'
apply plugin: 'license'
license {
header rootProject.file('src/etc/header.txt')
skipExistingHeaders true
ext.year = Calendar.getInstance().get(Calendar.YEAR)
mapping {
java='SLASHSTAR_STYLE'
}
includes(['**/*.java'])
excludes(['**/package-info.java'])
}
bootRepackage {
enabled = false
}
compileJava {
sourceCompatibility=1.6
targetCompatibility=1.6
options.fork = true
options.forkOptions.with {
memoryMaximumSize = "512m"
}
}
compileTestJava {
sourceCompatibility=1.7
targetCompatibility=1.7
options.fork = true
options.forkOptions.with {
memoryMaximumSize = "512m"
}
}
eclipse {
project { natures += 'org.springframework.ide.eclipse.core.springnature' }
}
// Include project specific settings
task eclipseSettings(type: Copy) {
from rootProject.files(
"src/eclipse/org.eclipse.jdt.ui.prefs",
"src/eclipse/de.loskutov.anyedit.AnyEditTools.prefs")
into project.file('.settings/')
}
task eclipseJdtPrepare(type: Copy) {
from rootProject.file("src/eclipse/org.eclipse.jdt.core.prefs")
into project.file(".settings/")
}
task cleanEclipseJdtUi(type: Delete) {
delete project.file(".settings/org.eclipse.jdt.ui.prefs")
delete project.file(".settings/org.eclipse.jdt.core.prefs")
}
tasks["eclipseJdt"].dependsOn(eclipseJdtPrepare)
tasks["cleanEclipse"].dependsOn(cleanEclipseJdtUi)
tasks["eclipse"].dependsOn(eclipseSettings)
sourceSets {
test {
groovy {
srcDirs = ['src/test/java']
resources {
srcDirs = [
'src/test/resources',
'src/test/java'
]
}
}
resources {
srcDirs = [
'src/test/resources',
'src/test/java'
]
}
}
}
configurations.all { resolutionStrategy.cacheChangingModulesFor 60, 'minutes' }
// dependencies that are common across all java projects
dependencies {
versionManagement "io.spring.platform:platform-versions:$platformVersion@properties"
testCompile "org.springframework.boot:spring-boot-starter-test"
testCompile "org.codehaus.groovy:groovy-all"
}
forceDependencyVersions(subproject)
// enable all compiler warnings; individual projects may customize further
[compileJava, compileTestJava]*.options*.compilerArgs = ["-Xlint:all"]
test {
// suppress all console output during testing unless running `gradle -i`
logging.captureStandardOutput(LogLevel.INFO)
minHeapSize = "128m"
maxHeapSize = "512m"
jvmArgs "-XX:MaxPermSize=512m"
jvmArgs "-Djava.net.preferIPv4Stack=true"
jvmArgs "-XX:+HeapDumpOnOutOfMemoryError"
// useful for debugging the GradleWorkerMain
// jvmArgs "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8000"
// jvmArgs "-Dlog4j.debug=true"
// classpath = files('/some/dir/with/props') + project.sourceSets.test.runtimeClasspath
maxParallelForks = project.hasProperty('maxParallelForks') ? project.maxParallelForks as int : 1
forkEvery = 10
ignoreFailures = project.hasProperty('ignoreTestFailures') ? getProperty('ignoreTestFailures') : false
if (project.hasProperty('testLoggingStarted')) {
testLogging {
events 'started'
}
}
}
javadoc {
description = "Generates project-level javadoc for use in -javadoc jar"
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED
options.author = true
options.header = project.name
options.links(javadocLinks)
// suppress warnings due to cross-module @see and @link references;
// note that global 'api' task does display all warnings.
logging.captureStandardError LogLevel.INFO
logging.captureStandardOutput LogLevel.INFO // suppress "## warnings" message
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
}
jar {
manifest.attributes["Created-By"] =
"${System.getProperty("java.version")} (${System.getProperty("java.specification.vendor")})"
manifest.attributes["Implementation-Title"] = subproject.name
manifest.attributes["Implementation-Version"] = subproject.version
exclude 'log4j.properties'
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
artifacts {
archives sourcesJar
archives javadocJar
}
}
apply from: 'gradle/build-modules.gradle'
project('spring-xd-analytics') {
description = 'Spring XD Anayltics'
dependencies {
compile project(":spring-xd-tuple")
compile "org.springframework:spring-core"
compile "org.springframework.data:spring-data-redis"
compile "org.springframework.data:spring-data-commons"
compile "redis.clients:jedis"
compile "org.springframework.integration:spring-integration-core"
compile "joda-time:joda-time"
compile project(':spring-xd-module-spi')
testCompile project(":spring-xd-test")
testCompile "nl.jqno.equalsverifier:equalsverifier:$equalsverifierVersion"
testCompile "com.fasterxml.jackson.core:jackson-databind"
runtime "log4j:log4j",
"org.slf4j:jcl-over-slf4j",
"org.slf4j:slf4j-log4j12","org.apache.commons:commons-pool2"
}
}
project('spring-xd-analytics-ml') {
description = 'Spring XD Analytics ML'
dependencies {
compile "org.springframework:spring-core"
testCompile project(":spring-xd-tuple")
}
}
project('spring-xd-dirt') {
description = 'Spring XD DIRT'
dependencies {
// See XD-903 for breakdown
// ************* Common to both Server and Container
compile "org.springframework:spring-aop"
compile project(":spring-xd-analytics")
compile "org.springframework.cloud:spring-cloud-spring-service-connector"
compile "org.springframework.cloud:spring-cloud-cloudfoundry-connector"
compile "org.springframework.boot:spring-boot-autoconfigure"
compile "org.springframework.boot:spring-boot-actuator"
compile "org.springframework.data:spring-data-redis"
compile "org.springframework.integration:spring-integration-amqp"
compile "org.springframework.integration:spring-integration-event"
//TODO: Apparently only needed for script, transform, router modules
runtime "org.springframework.integration:spring-integration-groovy"
//compile "org.springframework.integration:spring-integration-http"
// TODO: Investigate why spring-integration-http's optional dependency xerces becomes transitive dependency
configurations.compile.exclude(group: "xerces")
// Remove transitive dependency on commons-logging-api
configurations.compile.exclude(group: 'commons-logging', module: 'commons-logging-api')
compile "org.springframework.integration:spring-integration-jmx"
compile "org.springframework.integration:spring-integration-redis"
compile "org.jolokia:jolokia-core"
compile "com.fasterxml.jackson.core:jackson-databind"
compile "log4j:log4j"
compile "com.esotericsoftware.kryo:kryo"
compile "redis.clients:jedis"
compile ("org.apache.zookeeper:zookeeper:$zookeeperVersion") {
exclude group: 'jline'
}
compile ("org.apache.curator:curator-recipes:$curatorVersion") {
exclude group: 'org.apache.zookeeper'
exclude group: 'org.jboss.netty'
}
compile "commons-lang:commons-lang:2.4"
compile "args4j:args4j:$args4jVersion"
compile "org.springframework.batch:spring-batch-core"
//Required for a classloading issue. See https://github.com/spring-projects/spring-xd/pull/1116
runtime ("org.springframework.data:spring-data-mongodb") { exclude group: 'org.slf4j' }
compile "org.apache.tomcat:tomcat-jdbc"
compile ("org.springframework.batch:spring-batch-admin-manager:$springBatchAdminMgrVersion") {
exclude group: 'org.freemarker'
exclude group: 'hsqldb'
exclude module: 'spring-batch-integration'
}
compile ("org.springframework.batch:spring-batch-integration") {
exclude group: 'org.springframework.integration'
exclude group: 'org.springframework'
}
compile "org.hibernate:hibernate-validator"
runtime "org.slf4j:jul-to-slf4j"
runtime "org.slf4j:jcl-over-slf4j"
runtime "org.slf4j:slf4j-log4j12"
runtime "org.yaml:snakeyaml"
runtime "org.postgresql:postgresql:$postgresqlVersion"
runtime "mysql:mysql-connector-java"
compile project(':spring-xd-batch')
// ************* Dirt-Server only
compile project(':spring-xd-rest-domain')
compile "org.springframework:spring-webmvc"
runtime "org.springframework.data:spring-data-commons"
compile "org.apache.tomcat.embed:tomcat-embed-core"
// ************* Dirt-Container only (per se)
compile project(":spring-xd-module")
compile "com.jayway.jsonpath:json-path"
// ************* Container: Modules (should move on their own: XD-915)
compile project(":spring-xd-hadoop")
// ************* Container: Imposed by some Module (can't move)
compile "com.sun.mail:javax.mail"
// The following is needed eg by twitter module b/c jackson classes
// are loaded by RestTemplate and RestTemplate is in Dirt
runtime "org.codehaus.jackson:jackson-mapper-asl"
// ************* Test
testCompile project(":spring-xd-test")
testCompile "org.springframework.integration:spring-integration-test"
testCompile "com.jayway.jsonpath:json-path"
// The following two because of AmqBrokerAndTest
testCompile ("org.apache.activemq:activemq-broker") {
exclude group: 'org.mortbay.jetty'
exclude group: 'org.fusesource.fuse-extra'
}
testCompile "org.springframework:spring-jms"
}
// skip the startScripts task to avoid default start script generation
startScripts.setEnabled(false)
mainClassName = "org.springframework.xd.dirt.server.SingleNodeApplication"
task('execJar', type:Jar, dependsOn: 'jar') {
baseName = 'spring-xd-dirt'
version = project.version
classifier = 'exec'
from sourceSets.main.output
}
springBoot {
layout = 'ZIP'
}
bootRepackage {
withJarTask = tasks['execJar']
classifier = 'exec'
enabled = true
}
test {
systemProperties["xd.home"] = "${rootProject.projectDir}"
forkEvery = 40
}
task configFiles {
def config = file("$rootDir/config")
outputs.dir config
}
task xdUiFiles {
def uiFiles = file("$rootDir/spring-xd-ui/dist")
outputs.dir uiFiles
}
task scriptFiles {
def scripts = file("$rootDir/scripts/xd")
outputs.dir scripts
}
tasks["installApp"].dependsOn(":spring-xd-ui:setupUI")
applicationDistribution.from(configFiles) { into "config" }
applicationDistribution.from(scriptFiles) { into "bin" }
applicationDistribution.from(moduleFiles) { into "modules" }
applicationDistribution.from(xdUiFiles) { into "spring-xd-ui/dist" }
// Following execution is used by jsTests task to start SingleNodeApplication as background process
task backgroundAdminServer << { task ->
println "Starting SingleNode server as a background process"
ProcessBuilder processBuilder = new ProcessBuilder("java", "-cp", sourceSets.main.runtimeClasspath.getAsPath(), "org.springframework.xd.dirt.server.SingleNodeApplication");
processBuilder.directory(file("$rootDir/spring-xd-dirt"))
def Process proc = processBuilder.start()
proc.consumeProcessOutputStream(System.out)
println("Waiting for the server to startup...")
// Give 15s for the server startup
Thread.sleep(15000)
// Save the process object to destroy after test completion
project.singleNodeServerProcess.process = proc
}
task cleanDataDir(type: Delete) { delete "$rootDir/data" }
tasks["backgroundAdminServer"].dependsOn("classes")
tasks["clean"].dependsOn("cleanDataDir")
}
project('spring-xd-exec') {
dependencies { compile project(':spring-xd-dirt') }
apply plugin: "spring-boot"
springBoot {
mainClass = 'org.springframework.xd.dirt.server.SingleNodeApplication'
layout = 'ZIP'
}
jar {
exclude 'build'
exclude 'target'
// FIXME: unhack this
exclude '**/gemfire-*.jar'
exclude '**/aspectweaver-*.jar'
into('.') { from '../spring-xd-dirt/src/main/resources/log4j.properties' }
into('modules') { from '../modules' }
into('config') { from '../config' }
into('spring-xd-ui/dist') { from '../spring-xd-ui/dist' }
}
moduleProjects.each { moduleProject ->
project.jar.dependsOn moduleProject.copyLibs
}
}
project('spring-xd-hadoop') {
description = 'Spring XD Hadoop'
dependencies {
compile "org.springframework:spring-aop"
compile "org.springframework:spring-context"
compile "org.springframework:spring-context-support"
compile "org.springframework:spring-jdbc"
compile "org.springframework:spring-tx"
compile "org.springframework.integration:spring-integration-core"
compile "org.springframework.batch:spring-batch-core"
compile ("org.springframework.data:spring-data-hadoop:${springDataHadoopBase}") {
exclude group: 'org.springframework.batch'
exclude group: 'javax.servlet'
exclude group: 'javax.servlet.jsp'
exclude group: 'tomcat'
exclude group: 'org.mortbay.jetty'
exclude group: 'com.sun.jersey'
exclude group: 'org.codehaus.jackson'
exclude group: 'net.java.dev.jets3t'
exclude group: 'com.jcraft'
exclude group: 'junit'
exclude group: 'hsqldb'
exclude group: 'jline'
exclude group: 'com.sun.jersey.jersey-test-framework'
}
// Exclude transitive dependency
configurations.compile.exclude(group: "commons-beanutils", module: "commons-beanutils-core")
compile ("org.springframework.data:spring-data-hadoop-store") { exclude group: 'org.apache.hadoop' }
testRuntime "org.xerial.snappy:snappy-java"
}
}
apply from: 'gradle/build-hadoop-distros.gradle'
project('spring-xd-yarn:spring-xd-yarn-client') {
description = 'Spring XD YARN Client App'
dependencies {
compile "org.springframework:spring-aop"
compile "org.springframework:spring-context"
compile "org.springframework:spring-context-support"
compile "org.springframework:spring-jdbc"
compile "org.springframework:spring-tx"
compile "org.springframework.batch:spring-batch-core"
compile ("org.springframework.data:spring-yarn-boot") {
exclude group: 'javax.servlet'
exclude group: 'javax.servlet.jsp'
exclude group: 'tomcat'
exclude group: 'org.mortbay.jetty'
exclude group: 'com.sun.jersey'
exclude group: 'org.codehaus.jackson'
exclude group: 'net.java.dev.jets3t'
exclude group: 'com.jcraft'
exclude group: 'junit'
exclude group: 'hsqldb'
exclude group: 'org.slf4j'
exclude group: 'log4j'
}
compile "org.springframework.boot:spring-boot-autoconfigure"
runtime "log4j:log4j",
"org.slf4j:jcl-over-slf4j",
"org.slf4j:slf4j-log4j12"
}
jar {
setExcludes([])
}
bootRepackage {
enabled = true
}
}
project('spring-xd-yarn:spring-xd-yarn-appmaster') {
description = 'Spring XD YARN AppMaster'
dependencies {
compile "org.springframework:spring-aop"
compile "org.springframework:spring-context"
compile "org.springframework:spring-context-support"
compile "org.springframework:spring-jdbc"
compile "org.springframework:spring-tx"
compile "org.springframework.batch:spring-batch-core"
compile ("org.springframework.data:spring-yarn-boot") {
exclude group: 'javax.servlet'
exclude group: 'javax.servlet.jsp'
exclude group: 'tomcat'
exclude group: 'org.mortbay.jetty'
exclude group: 'com.sun.jersey'
exclude group: 'org.codehaus.jackson'
exclude group: 'net.java.dev.jets3t'
exclude group: 'com.jcraft'
exclude group: 'junit'
exclude group: 'hsqldb'
exclude group: 'org.slf4j'
exclude group: 'log4j'
runtime "org.slf4j:jcl-over-slf4j",
"org.slf4j:slf4j-log4j12"
}
compile "org.springframework.boot:spring-boot-autoconfigure"
}
jar {
setExcludes([])
}
bootRepackage {
enabled = true
}
}
// 'Binary' distributions projects
project ('spring-xd-gemfire-server') {
description = 'Gemfire Server to support XD Development and Demos'
dependencies {
compile "commons-beanutils:commons-beanutils"
compile "org.springframework.data:spring-data-gemfire"
compile project(':spring-xd-tuple')
runtime "log4j:log4j",
"org.slf4j:jcl-over-slf4j",
"org.slf4j:slf4j-log4j12"
}
apply plugin:'application'
// skip the startScripts task to avoid default start script generation
startScripts.setEnabled(false)
task(launch, dependsOn: 'classes', type: JavaExec) {
main = 'org.springframework.xd.gemfire.CacheServer'
classpath = sourceSets.test.runtimeClasspath
if (rootProject.hasProperty('config')) {
args = [
"${rootProject.getProperty('config')}"
]
}
}
mainClassName = 'org.springframework.xd.gemfire.CacheServer'
task configFiles {
def configs = file("$rootDir/spring-xd-gemfire-server/config")
outputs.dir configs
}
applicationDistribution.from(configFiles) { into "config" }
task scriptFiles {
def scripts = file("$rootDir/scripts/gemfire")
outputs.dir scripts
}
applicationDistribution.from(scriptFiles) { into "bin" }
}
project('redis') {
description = 'Redis distribution'
task syncScriptFiles(type: Sync) {
from "$rootDir/scripts/redis"
into project.file("${project.buildDir}/bin")
}
task sourceDist {
def distFile = file("$rootDir/redis/dist")
outputs.dir distFile
}
task syncDistFile(type: Sync) {
from "$rootDir/redis/dist"
into project.file("${project.buildDir}/dist")
}
task bundleRedis(dependsOn: [
'syncScriptFiles',
'syncDistFile'
]) { description = "Bundle redis source dist with install script" }
task clean(type: Delete) {
description = "Wipes Redis build directory"
delete 'build'
}
}
// Subprojects of Spring XD proper
project('spring-xd-module') {
description = 'Spring XD Module'
dependencies {
compile "org.springframework.integration:spring-integration-core"
compile "org.springframework.boot:spring-boot-autoconfigure"
compile project(':spring-xd-module-spi')
}
}
project('spring-xd-module-spi') {
description = 'Spring XD Module Options API'
dependencies {
compile "org.hibernate:hibernate-validator"
compile "org.apache.tomcat.embed:tomcat-embed-el"
compile "org.springframework:spring-web"
}
}
project('spring-xd-tuple') {
description = 'Spring XD Tuple'
dependencies {
compile "com.fasterxml.jackson.core:jackson-databind"
compile "org.springframework:spring-context"
compile "org.springframework.integration:spring-integration-core"
compile "org.springframework.batch:spring-batch-infrastructure"
compile "org.springframework:spring-jdbc"
}
}
project('spring-xd-rest-client') {
description = 'Spring XD REST Client'
dependencies {
compile "org.springframework:spring-web"
compile project(':spring-xd-rest-domain')
compile "com.fasterxml.jackson.core:jackson-databind"
compile "org.codehaus.jackson:jackson-core-asl"
compile "joda-time:joda-time"
}
}
project('spring-xd-rest-domain') {
description = 'Spring XD REST Domain'
dependencies {
compile "org.springframework:spring-webmvc"
compile ("org.springframework.hateoas:spring-hateoas") { exclude module: "spring-asm" }
compile "org.springframework.plugin:spring-plugin-core"
compile ("org.springframework.batch:spring-batch-admin-manager:$springBatchAdminMgrVersion") {
exclude module: 'spring-batch-integration'
exclude group: 'org.springframework.integration'
exclude group: 'org.slf4j'
exclude group: 'org.freemarker'
}
compile "org.springframework.batch:spring-batch-core"
compile "com.fasterxml.jackson.core:jackson-databind"
compile "org.codehaus.jackson:jackson-core-asl"
}
}
project('spring-xd-ui') {
description = 'Spring XD UI'
apply plugin: 'grunt'
node {
version = '0.10.25'
download = true
}
task cleanDist(type: Delete) {
description = "Remove the 'dist' directory"
delete 'dist'
}
task cleanNodeModules(type: Delete) {
description = "Remove the 'node_modules' directory"
delete 'node_modules'
}
task cleanBowerFiles(type: Delete) {
description = "Remove Bower directories"
delete '.bower_cache'
delete 'bower_components'
delete 'app/lib'
}
//task afterEclipseImport(dependsOn: 'setupUI') {
// description = "Ensure that the UI Build runs after import into STS"
//}
tasks['grunt_build'].dependsOn(['npmInstall', 'installGrunt']);
tasks['grunt_teste2e'].dependsOn(['grunt_build']);
task ui_test(dependsOn: ['grunt_teste2e', ':spring-xd-dirt:backgroundAdminServer']) {
description = "E2E-test the Admin UI using Grunt"
doLast {
def singleNodeServerProcess = project(':spring-xd-dirt').singleNodeServerProcess
if (singleNodeServerProcess != null && singleNodeServerProcess.process != null) {
singleNodeServerProcess.process.destroy()
println("Stopped the SingleNode server.")
}
}
}
task setupUI(dependsOn: ['grunt_build']) { description = "Build the Admin UI using Grunt" }
grunt_build.shouldRunAfter 'installGrunt'
grunt_teste2e.shouldRunAfter 'installGrunt'
installGrunt.shouldRunAfter 'npmInstall'
task cleanUI(dependsOn: [
'cleanDist',
'cleanNodeModules',
'cleanBowerFiles'
]) { description = "Clean the Admin UI dist, node modules and bower files" }
}
project('spring-xd-test') {
description = 'Spring XD Test'
dependencies {
compile "org.springframework.integration:spring-integration-test"
compile "org.springframework.integration:spring-integration-amqp"
compile "org.springframework.integration:spring-integration-redis"
compile "org.springframework.integration:spring-integration-mqtt"
compile ("org.springframework.data:spring-data-hadoop") {
exclude group: 'javax.servlet'
exclude group: 'javax.servlet.jsp'
exclude group: 'tomcat'
exclude group: 'org.mortbay.jetty'
exclude group: 'com.sun.jersey'
exclude group: 'org.codehaus.jackson'
exclude group: 'net.java.dev.jets3t'
exclude group: 'com.jcraft'
exclude group: 'junit'
exclude group: 'hsqldb'
exclude group: 'org.springframework.batch'
exclude group: 'jline'
}
compile "com.google.guava:guava:$guavaVersion"
compile "org.springframework.data:spring-data-redis"
compile "org.springframework:spring-context"
compile "org.springframework:spring-context-support"
compile "org.springframework:spring-tx"
compile "org.springframework:spring-test"
compile "redis.clients:jedis"
compile "org.hsqldb:hsqldb"
compile "org.apache.tomcat:tomcat-jdbc"
compile "junit:junit"
compile "commons-io:commons-io"
}
}
project('spring-xd-shell') {
description = 'Spring XD Shell'
apply plugin: "application"
mainClassName = "org.springframework.shell.Bootstrap"
run { standardInput = System.in }
test {
include '**/*TestSuite*'
forkEvery 20
}
dependencies {
compile "org.springframework.shell:spring-shell:$springShellVersion"
compile project(":spring-xd-rest-client")
compile ("org.springframework.data:spring-data-hadoop") {
exclude group: 'javax.servlet'
exclude group: 'org.mortbay.jetty'
exclude group: 'hsqldb'
}
compile "com.google.guava:guava:$guavaVersion"
compile "org.codehaus.jackson:jackson-mapper-asl"
compile "commons-io:commons-io"
configurations.compile.exclude(group: "xerces")
runtime "org.slf4j:jcl-over-slf4j"
runtime "org.slf4j:slf4j-log4j12"
runtime "log4j:log4j"
testCompile project(":spring-xd-test-fixtures")
testCompile project(":spring-xd-dirt")
testCompile "uk.co.modular-it:hamcrest-date:${hamcrestDateVersion}"
testCompile "org.springframework.integration:spring-integration-ftp"
testCompile "org.apache.ftpserver:ftpserver-core:$ftpServerVersion"
}
// skip the startScripts task to avoid default start script generation
startScripts.setEnabled(false)
task scriptFiles {
def scripts = file("$rootDir/scripts/shell")
outputs.dir scripts
}
applicationDistribution.from(scriptFiles) { into "bin" }
task configFiles {
def configs = file("$rootDir/spring-xd-shell/config")
outputs.dir configs
}
applicationDistribution.from(configFiles) { into "config" }
}
project('spring-xd-batch') {
description = 'Sub project for XD batch support '
dependencies {
runtime "org.yaml:snakeyaml"
compile "org.hsqldb:hsqldb"
compile "org.springframework.boot:spring-boot-autoconfigure"
compile "org.springframework.boot:spring-boot-actuator"
compile "org.springframework:spring-jdbc"
compile "org.springframework.batch:spring-batch-core"
}
apply plugin:'application'
// skip the startScripts task to avoid default start script generation
startScripts.setEnabled(false)
task scriptFiles {
def scripts = file("$rootDir/scripts/hsqldb")
outputs.dir scripts
}
applicationDistribution.from(scriptFiles) { into "bin" }
}
// Fixtures
project('spring-xd-test-fixtures') {
description = 'Fixtures for use by both unit & acceptance tests '
test {
}
dependencies {
compile project(":spring-xd-test")
compile "org.springframework.shell:spring-shell:$springShellVersion"
compile "commons-collections:commons-collections"
compile "com.icegreen:greenmail:$greenmailVersion"
compile "com.fasterxml.jackson.core:jackson-databind"
compile "org.springframework:spring-jms"
compile "org.apache.activemq:activemq-client"
compile "org.springframework:spring-web"
compile ("org.springframework.data:spring-data-mongodb") { exclude group: 'org.slf4j' }
runtime "log4j:log4j",
"org.slf4j:jcl-over-slf4j",
"org.slf4j:slf4j-log4j12"
}
}
// Integration Tests
project('spring-xd-integration-test') {
description = 'Spring Integration tests'
test {
onlyIf {
System.getProperty('run_integration_tests', 'false')=='true'
}
exclude('org/springframework/xd/integration/test/FtpHdfsTest.class')
}
configurations.all {
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
//Force version of Guava
if (details.requested.group == 'com.google.guava') {
details.useVersion "$oldGuavaVersion"
}
}
}
}
dependencies {
compile project(":spring-xd-test-fixtures")
compile project(":spring-xd-test")
compile project(":spring-xd-rest-client")
compile "org.apache.jclouds.provider:aws-sts:$jcloudsVersion"
compile "org.apache.jclouds.provider:aws-ec2:$jcloudsVersion"
compile "org.apache.jclouds.driver:jclouds-sshj:$jcloudsVersion"
compile "com.fasterxml.jackson.core:jackson-databind"
compile ("org.apache.hadoop:hadoop-common:$hadoop22Version")
compile ("org.apache.hadoop:hadoop-client:$hadoop22Version")
compile "com.google.guava:guava:$oldGuavaVersion"
compile ("org.springframework.data:spring-data-mongodb") { exclude group: 'org.slf4j' }
testCompile "mysql:mysql-connector-java"
testCompile "commons-collections:commons-collections"
testCompile "org.springframework.shell:spring-shell:$springShellVersion"
testCompile "org.springframework.boot:spring-boot-autoconfigure"
testCompile "org.springframework:spring-web"
testCompile "org.springframework:spring-jms"
testCompile ("org.springframework.data:spring-data-hadoop") {
exclude group: 'org.apache.hadoop'
}
runtime "log4j:log4j",
"org.slf4j:jcl-over-slf4j",
"org.slf4j:slf4j-log4j12"
testCompile ("org.apache.ftpserver:ftpserver-core:${apacheFtpServerVersion}")
}
}
// Distributed (multi container) tests
project('spring-xd-distributed-test') {
description = 'Spring XD Distributed tests'