2018-07-29 17:48:46 +08:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
}
|
|
|
|
|
|
|
|
group 'xraorao'
|
|
|
|
version '1.0-SNAPSHOT'
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
//url 'https://mvnrepository.com/artifact/org.apache.storm/storm-core'
|
|
|
|
url 'http://clojars.org/repo/'
|
2018-07-31 15:12:27 +08:00
|
|
|
//url 'http://mirrors.163.com/maven/#browse/browse/components:maven-public/'
|
2018-07-29 17:48:46 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/org.apache.storm/storm-core
|
|
|
|
compile group: 'org.apache.storm', name: 'storm-core', version: '1.1.1'
|
|
|
|
|
|
|
|
//compile group: 'org.apache.storm', name: 'storm-kafka', version: '1.1.1'
|
|
|
|
compile 'com.google.guava:guava:25.1-jre'
|
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/org.apache.commons/commons-collections4
|
|
|
|
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.0'
|
|
|
|
|
2018-07-31 15:12:27 +08:00
|
|
|
// https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common
|
|
|
|
compile group: 'org.apache.hadoop', name: 'hadoop-common', version: '2.7.4'
|
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-hdfs
|
|
|
|
compile group: 'org.apache.hadoop', name: 'hadoop-hdfs', version: '2.7.4'
|
|
|
|
|
|
|
|
// https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-mapreduce-client-core
|
|
|
|
compile group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-core', version: '2.7.4'
|
|
|
|
|
2018-08-03 12:01:41 +08:00
|
|
|
// https://mvnrepository.com/artifact/org.apache.hbase/hbase-client
|
|
|
|
compile group: 'org.apache.hbase', name: 'hbase-client', version: '1.2.6'
|
2018-07-31 15:12:27 +08:00
|
|
|
|
2018-08-24 14:37:08 +08:00
|
|
|
// https://mvnrepository.com/artifact/mysql/mysql-connector-java
|
|
|
|
compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.46'
|
|
|
|
|
2018-07-29 17:48:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes 'Implementation-Title': 'License',
|
|
|
|
'Implementation-Version': version
|
|
|
|
attributes "Class-Path": configurations.compile.collect { it.getName() }.join(' dependencies/')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task copyJar(type: Copy){
|
|
|
|
from configurations.runtime
|
|
|
|
into ('build/libs/dependencies')
|
|
|
|
}
|