-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
74 lines (54 loc) · 1.98 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
/*
*/
version = "0.3.1-SNAPSHOT"
buildscript {
repositories { jcenter() }
dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0' // Note PF : this plugin does not support resource transformation (needed for akka configuration files)
}
}
// Apply the java plugin to add support for Java
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'com.github.johnrengelman.shadow'
import com.github.jengelman.gradle.plugins.shadow.tasks.*
eclipse {
classpath { downloadSources=true }
}
repositories {
maven { url "http://repository.apache.org" }
jcenter()
mavenLocal()
}
def flinkversion = "1.3.1"
dependencies {
compile 'org.slf4j:slf4j-api:1.7.5'
compile files('externallibs/osmpbf-1.3.3.jar')
compile 'com.esri.geometry:esri-geometry-api:1.2.1'
compile "org.apache.flink:flink-java:${flinkversion}"
compile "org.apache.flink:flink-clients_2.10:${flinkversion}"
compile "org.apache.flink:flink-avro_2.10:${flinkversion}"
compile "net.frett27:osm-gis-avro:0.1"
testCompile "junit:junit:4.11"
}
jar {
manifest { attributes 'Main-Class': 'org.frett27.spatialflink.inputs.process.ProcessOSM' }
}
// this task generate a jar bundle that include all the flink stack,
// and permit to use the soft from a command line
task allJars(type: ShadowJar) {
from sourceSets.main.output
configurations = [project.configurations.compile]
transform(com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer) { resource = 'reference.conf' }
manifest {
attributes 'Implementation-Title': 'osm-flink-tools', 'Implementation-Version': version
attributes 'Main-Class': 'org.frett27.spatialflink.inputs.process.ProcessOSM'
}
}
// shadow jar, for use inside a flink cluster (does not include the flink stack)
shadowJar {
dependencies {
include(dependency('com.esri.geometry:esri-geometry-api'))
include(dependency(files('externallibs/osmpbf-1.3.3.jar')))
include(dependency('net.frett27:osm-gis-avro'))
}
}