-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
164 lines (128 loc) · 7.31 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
plugins {
id 'java'
id 'maven'
id 'application'
id 'com.github.johnrengelman.shadow' version '4.0.3'
}
group = 'org.example'
version = '0.1'
description = ""
sourceCompatibility = 1.8
targetCompatibility = 1.8
task('write-cassandra', dependsOn: 'shadowJar', type: JavaExec)
{
mainClassName = main = "org.apache.beam.examples.WriteCassandra"
classpath = sourceSets.main.runtimeClasspath
systemProperty "runner", System.getProperty("runner")
}
task('read-cassandra', dependsOn: 'shadowJar', type: JavaExec)
{
mainClassName = main = "org.apache.beam.examples.ReadCassandra"
classpath = sourceSets.main.runtimeClasspath
systemProperty "runner", System.getProperty("runner")
}
task('read-write-cassandra', dependsOn: 'shadowJar', type: JavaExec)
{
mainClassName = main = "org.apache.beam.examples.ReadWriteCassandra"
classpath = sourceSets.main.runtimeClasspath
systemProperty "runner", System.getProperty("runner")
}
task('read-kafka', dependsOn: 'shadowJar', type: JavaExec)
{
mainClassName = main = "org.apache.beam.examples.ReadKafka"
classpath = sourceSets.main.runtimeClasspath
systemProperty "runner", System.getProperty("runner")
}
task('join-from-cassandra', dependsOn: 'shadowJar', type: JavaExec)
{
mainClassName = main = "org.apache.beam.examples.JoinFromCassandra"
classpath = sourceSets.main.runtimeClasspath
systemProperty "runner", System.getProperty("runner")
}
task('join-from-cassandra-to-cassandra', dependsOn: 'shadowJar', type: JavaExec)
{
mainClassName = main = "org.apache.beam.examples.JoinFromCassandraToCassandra"
classpath = sourceSets.main.runtimeClasspath
systemProperty "runner", System.getProperty("runner")
}
repositories {
maven { url "https://repository.apache.org/content/repositories/snapshots/" }
maven { url "http://repo.maven.apache.org/maven2" }
ivy {
artifactPattern "https://github.com/[organization]/[module]/raw/[revision]/[classifier]"
}
}
dependencies {
sourceSets {
main {
java {
srcDir "build/generated/sources/annotationProcessor/java/main" // Support AutoVaue in intellisense
}
}
}
// *********************************************************************************************************************
// BEAM JARS:
compile(group: 'org.apache.beam', name: 'beam-sdks-java-core', version:'2.13.0')
compile group: 'org.apache.beam', name: 'beam-model-pipeline', version: '2.13.0'
compile(group: 'org.apache.beam', name: 'beam-runners-direct-java', version: '2.13.0')
compile(group: 'org.apache.beam', name: 'beam-runners-flink_2.11', version:'2.13.0')
compile(group: 'org.apache.beam', name: 'beam-runners-spark', version: '2.13.0') { exclude(module: '*') }
compile(group: 'org.apache.beam', name: 'beam-sdks-java-io-cassandra', version:'2.13.0')
compile group: 'org.apache.beam', name: 'beam-sdks-java-io-kafka', version: '2.13.0'
// compile("srfrnk:public-jars:master:beam-sdks-java-io-cassandra-2.10.0-SNAPSHOT.jar")
// compile files("../public-jars/beam-model-pipeline-2.14.0-SNAPSHOT.jar")
// compile files("../public-jars/beam-sdks-java-core-2.14.0-SNAPSHOT.jar")
// compile files("../public-jars/beam-sdks-java-io-cassandra-2.14.0-SNAPSHOT.jar")
// compile files("../public-jars/beam-runners-core-java-2.14.0-SNAPSHOT.jar")
// compile files("../public-jars/beam-runners-core-construction-java-2.14.0-SNAPSHOT.jar")
// compile files("../public-jars/beam-runners-flink-1.7-2.14.0-SNAPSHOT.jar")
// compile files("../public-jars/beam-runners-direct-java-2.14.0-SNAPSHOT.jar")
// compile files("../cassandra-java-driver/driver-core/target/cassandra-driver-core-3.6.1-SNAPSHOT-shaded.jar")
compile group: 'org.apache.beam', name: 'beam-vendor-guava-20_0', version: '0.1'
compile group: 'org.apache.beam', name: 'beam-vendor-grpc-1_13_1', version: '0.2'
// *********************************************************************************************************************
// FLINK JARS:
compile(group: 'org.apache.flink', name: 'flink-core', version: '1.7.1')
compile(group: 'org.apache.flink', name: 'flink-streaming-java_2.11', version: '1.7.1')
compile(group: 'org.apache.flink', name: 'flink-clients_2.11', version: '1.7.1')
// compile(group: 'org.apache.flink', name: 'flink-runtime_2.11', version: '1.7.1')
// compile(group: 'org.apache.flink', name: 'flink-metrics', version: '1.7.1')
// *********************************************************************************************************************
// SPARK JARS:
// compile(group: 'org.apache.spark', name: 'spark-core_2.11', version: '2.4.0') { exclude(module: '*') }
// compile(group: 'org.apache.spark', name: 'spark-streaming_2.11', version: '2.4.0') { exclude(module: '*') }
// *********************************************************************************************************************
// CASSANDRA JARS:
compile(group: 'com.datastax.cassandra', name: 'cassandra-driver-core', version:'3.6.0')
compile(group: 'com.datastax.cassandra', name: 'cassandra-driver-mapping', version:'3.6.0')
compile(group: 'com.datastax.cassandra', name: 'cassandra-driver-extras', version:'3.6.0')
// compile("srfrnk:java-driver:master:driver-core/target/cassandra-driver-core-3.6.1-SNAPSHOT.jar")
// compile("srfrnk:java-driver:master:driver-mapping/target/cassandra-driver-mapping-3.6.1-SNAPSHOT.jar")
// compile("srfrnk:java-driver:master:driver-extras/target/cassandra-driver-extras-3.6.1-SNAPSHOT.jar")
// *********************************************************************************************************************
// MISC JARS:
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.8'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.8'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.9.8'
compile group: 'joda-time', name: 'joda-time', version: '2.10.1'
// compile group: 'com.google.guava', name: 'guava', version: '20.0'
// compile group: 'io.netty', name: 'netty-all', version: '4.1.32.Final'
// compile group: 'com.codahale.metrics', name: 'metrics-core', version: '3.0.2'
// compile group: 'org.lz4', name: 'lz4-java', version: '1.4.0'
// compile group: 'org.hdrhistogram', name: 'HdrHistogram', version: '2.1.10'
// compile group: 'com.github.jnr', name: 'jnr-ffi', version: '2.1.9'
// compile group: 'com.github.jnr', name: 'jnr-posix', version: '3.0.47'
// compile group: 'org.apache.avro', name: 'avro', version: '1.8.2'
// compile group: 'org.tukaani', name: 'xz', version: '1.8'
// compile group: 'org.xerial.snappy', name: 'snappy-java', version: '1.1.7.2'
compile group: 'com.google.auto.value', name: 'auto-value', version: '1.6.3'
compile group: 'com.google.auto.value', name: 'auto-value-annotations', version: '1.6.3'
annotationProcessor 'com.google.auto.value:auto-value:1.6.3'
// *********************************************************************************************************************
}
shadowJar {
zip64 true
mergeServiceFiles()
}