forked from mbbx6spp/metrics-wizard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (58 loc) · 1.75 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
plugins {
id "java"
id "checkstyle"
id "findbugs"
id "pmd"
id "com.jfrog.bintray" version "1.1"
}
//////////////////////////////////////////////////////
// BUILD META-DATA
group = 'com.github.lookout'
version = '0.0.1'
description = 'Metrics monitoring agent'
/* Ensure we're at least JDK6 bttecode compatible */
targetCompatibility = '1.6'
sourceCompatibility = '1.6'
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
// DEPENDENCY MANAGEMENT
repositories {
jcenter()
}
dependencies {
compile '
compile "io.dropwizard.metrics:metrics-core:3.1.0"
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'
testCompile 'cglib:cglib-nodep:2.2.+'
}
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
// TESTS
test {
testLogging {
/* we want more test failure information, see:
* <http://mrhaki.blogspot.com/2013/05/gradle-goodness-show-more-information.html>
*/
exceptionFormat = 'full'
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
/* We should always run tests before creating an artifact */
assemble.dependsOn check
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
// PUBLISHING
/* Add the sources jar to the list of artifacts to publish */
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
//////////////////////////////////////////////////////