-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
95 lines (74 loc) · 3.44 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
group 'stream_refact'
version '1.0-SNAPSHOT'
apply plugin: 'idea'
apply plugin: 'scala'
task "createDirs" << {
sourceSets*.scala.srcDirs*.each { it.mkdirs() }
sourceSets*.resources.srcDirs*.each { it.mkdirs() }
}
sourceSets {
main {
scala {
srcDirs = ['src/main/scala']
}
}
}
sourceCompatibility = 1.7
jar {
zip64 true
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }}
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
manifest {
attributes(
"Manifest-Version": 1.0,
"Main-Class": 'com.iiot.stream.spark.HTMonitorContext')
}
}
repositories{
maven { url 'http://124.207.207.21:62125/repository/maven-central/' }
maven { url 'http://124.207.207.21:62125/repository/maven-snapshots/' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url "http://repo.maven.apache.org/maven2" }
mavenCentral()
mavenLocal()
}
dependencies{
compile(group: 'com.htiiot.store', name: 'store-shared', version:'0.0.1-SNAPSHOT') {
exclude(group: 'com.fasterxml.jackson.core',module: 'jackson-databind')
}
compile (group: 'com.iiot.alarm', name: 'alarm-shared', version:'992.0-SNAPSHOT')
{
exclude(group: 'com.fasterxml.jackson.core',module: 'jackson-databind')
}
compile (group: 'com.htiiot.common', name: 'common-shared', version:'0.0.1-SNAPSHOT')
{
exclude(group: 'com.fasterxml.jackson.core',module: 'jackson-databind')
}
compile( group: 'com.htiiot.stream', name: 'stream-shared', version:'0.0.1-SNAPSHOT'){
exclude(group: 'com.fasterxml.jackson.core',module: 'jackson-databind')
}
compile (group: 'com.htiiot.resources', name: 'resources-shared', version:'0.0.1-SNAPSHOT')
{
exclude(group: 'com.fasterxml.jackson.core',module: 'jackson-databind')
}
compile group: 'org.apache.httpcomponents', name: 'httpclient', version:'4.5.2'
compile group: 'com.alibaba', name: 'fastjson', version:'1.2.31'
compile (group: 'org.apache.spark', name: 'spark-core_2.10', version:'2.1.0')
compile (group: 'org.apache.spark', name: 'spark-streaming_2.10', version:'2.1.0')
compile (group: 'org.apache.spark', name: 'spark-streaming-kafka_2.10', version:'1.6.3')
compile ("org.scala-lang:scala-library:2.10.6")
compile ("org.scala-lang:scala-compiler:2.10.6")
compile ("org.scala-lang:scala-reflect:2.10.6")
compile group: 'org.apache.hadoop', name: 'hadoop-client', version:'2.6.0'
compile group: 'redis.clients', name: 'jedis', version:'2.9.0'
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.21'
compile group: 'org.xeustechnologies', name: 'jcl-core', version:'2.5'
testCompile group: 'junit', name: 'junit', version:'4.4'
compile group: 'net.minidev', name: 'json-smart',version: '2.2.1'
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.6.5'
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.6.5'
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.6.5'
}