-
Notifications
You must be signed in to change notification settings - Fork 93
/
build.gradle
68 lines (59 loc) · 1.77 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
apply plugin: 'java'
apply plugin: 'application'
def versionNum = '0.0.27'
allprojects {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked"
options.compilerArgs << "-Xlint:deprecation"
}
}
task loader(type: Exec) {
dependsOn << 'uberloader'
commandLine './src/make/buildit.sh'
}
task unloader(type: Exec) {
dependsOn << 'uberunloader'
commandLine './src/make/unloader.sh'
}
jar {
baseName = 'cassandra-loader'
version = versionNum
}
repositories {
mavenCentral()
}
dependencies {
compile 'com.datastax.cassandra:cassandra-driver-core:3.2.0'
compile 'org.xerial.snappy:snappy-java:1.0.5'
compile 'net.jpountz.lz4:lz4:1.2.0'
compile 'ch.qos.logback:logback-classic:1.1.3'
compile 'com.univocity:univocity-parsers:2.2.3'
compile 'org.apache.commons:commons-lang3:3.0'
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
}
task uberloader(type: Jar) {
dependsOn << 'compileJava'
from "src/main/resources/logback.xml"
from files(sourceSets.main.output.classesDir)
from(configurations.runtime.asFileTree.files.collect { zipTree(it) }) {
exclude "META-INF/**"
}
manifest {
attributes "Main-Class" : 'com.datastax.loader.CqlDelimLoad'
}
baseName = 'cassandra-loader-uber'
version = versionNum
}
task uberunloader(type: Jar) {
dependsOn << 'compileJava'
from "src/main/resources/logback.xml"
from files(sourceSets.main.output.classesDir)
from(configurations.runtime.asFileTree.files.collect { zipTree(it) }) {
exclude "META-INF/**"
}
manifest {
attributes "Main-Class" : 'com.datastax.loader.CqlDelimUnload'
}
baseName = 'cassandra-unloader-uber'
version = versionNum
}