-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
55 lines (47 loc) · 1.05 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
jacoco {
toolVersion = "0.7.5.201505241946"
}
sourceCompatibility = 1.8
version = '1.0'
jar {
manifest {
attributes 'Main-Class': 'biz.neustar.CategoryDemo'
}
}
jacocoTestReport{
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/reports/jacoco/html"
}
executionData = files('build/jacoco/test.exec')
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
testCompile 'junit:junit:4.12'
}
test {
systemProperties 'property': 'value'
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}
task buildJar(type: Jar) {
manifest {
attributes 'Main-Class': 'biz.neustar.CategoryDemo'
}
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}