-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
82 lines (71 loc) · 1.89 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
buildscript {
repositories {
mavenCentral()
maven {
url 'https://repo.spring.io/libs-milestone'
}
maven {
url 'http://maven.springframework.org/release'
}
ivy {
url 'https://projectlombok.org/'
layout 'pattern', {
artifact '/[artifact].[ext]'
}
}
maven {
// docker-compose-rule is published on bintray
url 'https://dl.bintray.com/palantir/releases'
}
}
dependencies {
classpath("com.palantir.gradle.docker:gradle-docker:0.19.2")
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
allprojects {
version "0.0.1-SNAPSHOT"
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'com.palantir.docker'
apply plugin: 'jacoco'
sourceCompatibility = 1.10
targetCompatibility = 1.10
repositories {
mavenCentral()
maven {
url 'https://repo.spring.io/libs-milestone'
}
maven {
url 'http://maven.springframework.org/release'
}
maven {
url "http://repo1.maven.org/maven2/"
}
maven {
url 'https://dl.bintray.com/palantir/releases'
}
ivy {
url 'https://projectlombok.org/'
layout 'pattern', {
artifact '/[artifact].[ext]'
}
}
jcenter()
}
}
task codeCoverageReport(type: JacocoReport) {
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
subprojects.each {
sourceSets it.sourceSets.main
}
reports {
xml.enabled true
xml.destination "${buildDir}/reports/jacoco/report.xml"
html.enabled false
csv.enabled false
}
}
codeCoverageReport.dependsOn {
subprojects*.test
}