-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
54 lines (44 loc) · 1.34 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
group 'com.joantolos.kata.rate.calculator'
apply plugin: 'java'
apply plugin: "groovy"
apply plugin: "jacoco"
dependencies {
compile "org.codehaus.groovy:groovy-all:2.2.2"
compile group: 'org.apache.commons', name: 'commons-io', version: '1.3.2'
}
allprojects {
version '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
apply plugin: 'java'
apply plugin: 'jacoco'
repositories {
jcenter()
}
jacoco {
toolVersion = "0.7.6+"
reportsDir = file("${project.buildDir}/jacoco/reports")
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/jacoco/reports/coverage/html"
}
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it,
exclude: ['com/joantolos/kata/rate/calculator/RateCalculator*'])
})
}
}
dependencies {
testCompile "org.spockframework:spock-core:1.1-groovy-2.4-rc-2"
}
task fatJar(type: Jar) {
manifest { attributes'Main-Class': 'com.joantolos.kata.rate.calculator.RateCalculator' }
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
}