forked from organicveggie/metrics-statsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
107 lines (86 loc) · 1.88 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
95
96
97
98
99
100
101
102
103
104
105
106
allprojects {
version = '4.1.0'
}
buildscript {
repositories {
maven { url 'http://repo.springsource.org/plugins-release' }
}
dependencies {
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.3'
}
}
defaultTasks 'build'
subprojects {
plugins.with {
apply 'java'
apply 'maven-publish'
apply 'checkstyle'
apply 'findbugs'
apply 'jacoco'
apply 'propdeps'
apply 'propdeps-maven'
apply 'propdeps-idea'
apply 'propdeps-eclipse'
}
group = 'com.readytalk'
description = 'Metrics StatsD Support'
repositories {
mavenCentral()
}
dependencies {
compile (
'org.slf4j:slf4j-api:1.7.5',
)
optional (
'com.google.code.findbugs:jsr305:2.0.1',
'com.google.code.findbugs:annotations:2.0.1',
)
testCompile (
'junit:junit:4.11',
'org.mockito:mockito-all:1.9.5',
'org.slf4j:slf4j-jdk14:1.7.5',
'org.easytesting:fest-assert-core:2.0M10',
)
}
sourceCompatibility = 1.6
targetCompatibility = 1.6
tasks.withType(Compile) {
options.compilerArgs << "-Xlint:all"
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
checkstyle {
toolVersion = '5.6'
showViolations = false
sourceSets = [sourceSets.main]
configFile = file("$rootDir/config/checkstyle/checkstyle.xml")
}
findbugs {
toolVersion = '2.0.1'
sourceSets = [sourceSets.main]
ignoreFailures = true
}
jacocoTestReport {
reports {
html.enabled = true
csv.enabled = true
xml.enabled = true
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
}
}
}
jacocoTestReport.dependsOn test
build.dependsOn javadoc, jacocoTestReport
}
task wrapper(type: Wrapper) {
gradleVersion = '1.6'
}