forked from CalebFenton/simplify
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
74 lines (61 loc) · 1.62 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.4.0'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.1'
}
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'idea'
}
subprojects {
group = 'org.cf'
apply plugin: 'java'
sourceCompatibility = 1.7
apply plugin: 'eclipse'
apply plugin: 'com.github.johnrengelman.shadow'
if (!project.name.equals("demoapp")) {
jacocoTestReport {
reports {
html.enabled = true
xml.enabled = true
csv.enabled = false
}
}
}
}
coveralls {
sourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs).files.absolutePath
}
task jacocoTestReport(type: org.gradle.testing.jacoco.tasks.JacocoReport) {
ext.targetProjects = subprojects - project(':demoapp')
dependsOn = ext.targetProjects.test
sourceDirectories = files(ext.targetProjects.sourceSets.main.allSource.srcDirs)
classDirectories = files(ext.targetProjects.sourceSets.main.output)
executionData = files(ext.targetProjects.jacocoTestReport.executionData)
reports {
html.enabled = true
xml.enabled = true
csv.enabled = false
}
onlyIf = {
true
}
doFirst {
executionData = files(executionData.findAll {
it.exists()
})
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}