forked from taboola/cassandra-count
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
44 lines (36 loc) · 927 Bytes
/
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
apply plugin: 'java'
apply plugin: 'application'
def versionNum = '0.0.5'
allprojects {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked"
}
}
task buildit(type: Exec) {
dependsOn << 'uberloader'
commandLine './src/make/buildit.sh'
}
jar {
baseName = 'cassandra-count'
version = versionNum
}
repositories {
mavenCentral()
}
dependencies {
compile 'com.datastax.cassandra:cassandra-driver-core:3.0.0'
compile 'ch.qos.logback:logback-classic:1.1.3'
}
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" : 'hessian.CqlCount'
}
baseName = 'cassandra-count-uber'
version = versionNum
}