-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
45 lines (38 loc) · 1.15 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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: "jacoco"
sourceCompatibility = 1.8
version = '0.0.1'
repositories {
mavenCentral()
}
task dist(dependsOn: [build, test, jacocoTestReport]) {
println 'Compiling and running all tests and coverage report'
}
task dependencyJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Beepsend api java wrapper with dependencies',
'Implementation-Version': version
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
compile 'org.springframework:spring-web:4.1.6.RELEASE'
compile 'com.fasterxml.jackson.core:jackson-databind:2.5.3'
testCompile 'org.springframework:spring-test:4.1.6.RELEASE'
testCompile 'org.mockito:mockito-all:2.0.2-beta'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
jacoco {
toolVersion = "0.7.5.201505241946"
reportsDir = file("$buildDir/customJacocoReportDir")
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/jacocoHtml"
}
}