forked from DhyansProjects/cassandra-health-check
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
74 lines (66 loc) · 2.17 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '1.2.1'
id 'pmd'
id 'com.jfrog.bintray' version '1.1'
}
version = '1.0.0'
group = 'com.lookout.cassandra'
defaultTasks 'check', 'assemble'
shadowJar {
manifest {
attributes 'Implementation-Title': 'Cassandra Health Check',
'Implementation-Version': project.version,
'Main-Class': 'com.lookout.cassandra.CassandraHealthCheck'
}
}
assemble.dependsOn shadowJar
assemble.dependsOn javadoc
/* Disable the default jar task */
jar.enabled = false
repositories {
jcenter()
maven {
url 'http://central.maven.org/maven2/'
/* url 'https://jcenter.bintray.com/' */
}
}
dependencies {
compile 'ch.qos.logback:logback-classic:1.1.3'
compile (group: 'com.datastax.cassandra', name: 'cassandra-driver-core', version: '2.1.10.3') {
exclude group: 'com.google.guava', module: 'guava'
}
compile group: 'args4j', name: 'args4j', version: '2.32'
compile group: 'com.google.guava', name: 'guava', version: '18.0'
testCompile (group: 'org.cassandraunit', name: 'cassandra-unit', version: '2.1.3.1') {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
exclude group: 'com.datastax.cassandra', module: 'cassandra-driver-core'
exclude group: 'io.netty', module: 'netty-all'
}
testCompile group: 'io.netty', name: 'netty-all', version: '4.0.27.Final'
testCompile group: 'com.google.collections', name: 'google-collections', version: '1.0'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
bintray {
filesSpec {
from 'build/libs'
into '.'
}
publish = true
pkg {
repo = 'systems'
name = 'cassandra-health-check'
user = project.hasProperty('bintrayUser') ? project.bintrayUser : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.bintrayApiKey : System.getenv('BINTRAY_KEY')
userOrg = 'lookout'
version {
name = project.version
}
}
}
pmd {
targetJdk = targetCompatibility
ignoreFailures = false
reportsDir = file("$project.buildDir/reports/pmd")
ruleSetFiles = files("src/test/resources/pmd.xml")
}