-
Notifications
You must be signed in to change notification settings - Fork 107
/
build.gradle
132 lines (110 loc) · 4.4 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
sourceCompatibility = 1.8
version = '0.1'
ext.hadoopVersion = '2.6.0'
ext.hiveVersion = '1.2.0'
repositories {
mavenLocal()
mavenCentral()
maven {
url 'http://conjars.org/repo/'
}
maven {
url 'http://maven.twttr.com/'
}
maven {
name 'redshift'
url 'http://redshift-maven-repository.s3-website-us-east-1.amazonaws.com/release'
}
/* Add links of Nexus/Artifactory in order to resolve the dependencies */
maven {
url ''
}
}
configurations {
hgGraph
hgPropertywindow
hgDataviewer
hgModel
hgService
hgCommon
}
dependencies {
hgGraph group: 'org.glassfish.tyrus.bundles', name: 'tyrus-standalone-client', version: '1.13'
hgGraph group: 'com.google.code.gson', name: 'gson', version: '2.6.2'
hgPropertywindow group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.2.2'
hgPropertywindow group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.2.2'
hgPropertywindow group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.2.2'
hgDataviewer group: 'net.sourceforge.csvjdbc', name: 'csvjdbc', version: '1.0.29'
hgDataviewer group: 'com.google.code.gson', name: 'gson', version: '2.7'
hgDataviewer group: 'com.opencsv', name: 'opencsv', version: '3.7'
hgModel group: 'xmlpull', name: 'xmlpull', version: '1.1.3.1'
hgModel group: 'xpp3', name: 'xpp3_min', version: '1.1.4c'
hgModel group: 'com.thoughtworks.xstream', name: 'xstream', version: '1.4.9'
hgService group: 'commons-collections', name: 'commons-collections', version: '3.2.2'
hgService group: 'org.antlr', name: 'antlr4-runtime', version: '4.5.1'
hgService group: 'cascading', name: 'lingual-hadoop2-mr1', version: '1.2.1', classifier:'jdbc'
hgService group: 'com.sparkjava', name: 'spark-core', version: '2.5.1'
hgService group: 'javax.websocket', name: 'javax.websocket-api', version: '1.1'
hgService( group: 'org.apache.hadoop', name: 'hadoop-minicluster', version: hadoopVersion){
exclude group: 'commons-beanutils'
exclude group: 'commons-collections'
}
hgService (group: 'org.apache.hive', name: 'hive-exec', version: hiveVersion) {
exclude group: 'com.google.guava'
exclude group: 'org.apache.curator'
exclude group: 'commons-beanutils'
exclude group: 'commons-collections'
}
hgService group: 'mysql', name: 'mysql-connector-java', version: '5.1.34'
hgService group: 'com.amazon.redshift', name: 'redshift-jdbc42', version: '1.2.1.1001'
hgService 'junit:junit:4.11'
hgCommon group: 'com.predic8', name: 'soa-model-core', version: '1.6.0'
}
task pullServiceDependencies(type: Copy) {
dependsOn configurations.hgService
from { // use of closure defers evaluation until execution time
configurations.hgService.collect {it}
}
into "hydrograph.ui/hydrograph.ui.product/resources/config/service"
}
task pullModelDependencies(type: Copy) {
dependsOn configurations.hgModel
from { // use of closure defers evaluation until execution time
configurations.hgModel.collect {it}
}
into "hydrograph.ui/hydrograph.ui.model/lib/"
}
task pullGraphDependencies(type: Copy) {
dependsOn configurations.hgGraph
from { // use of closure defers evaluation until execution time
configurations.hgGraph.collect {it}
}
into "hydrograph.ui/hydrograph.ui.graph/libs/"
}
task pullPropertyWindowDependencies(type: Copy) {
dependsOn configurations.hgPropertywindow
from { // use of closure defers evaluation until execution time
configurations.hgPropertywindow.collect {it}
}
into "hydrograph.ui/hydrograph.ui.propertywindow/resources/lib/"
}
task pullDataViewerDependencies(type: Copy) {
dependsOn configurations.hgDataviewer
from { // use of closure defers evaluation until execution time
configurations.hgDataviewer.collect {it}
}
into "hydrograph.ui/hydrograph.ui.dataviewer/lib/"
}
task pullCommonDependencies(type: Copy) {
dependsOn configurations.hgCommon
from { // use of closure defers evaluation until execution time
configurations.hgCommon.collect {it}
}
into "hydrograph.ui/hydrograph.ui.common/lib/"
}
task copyLibs(type: Copy) {
dependsOn pullServiceDependencies, pullModelDependencies, pullGraphDependencies, pullPropertyWindowDependencies, pullDataViewerDependencies, pullCommonDependencies
}