-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (47 loc) · 1.31 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
description 'These tasks make up the automated pipeline for the property-setter-gradle-plugin'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.skazzyy.gradle.plugins:sources-gradle-plugin:0.1.0'
}
}
apply plugin: 'eclipse'
apply plugin: 'groovy'
apply plugin: 'jacoco'
apply plugin: 'sources'
defaultTasks 'clean', 'build', 'jacoco', 'sampleCodeCoverageReport'
repositories {
mavenCentral()
}
dependencies {
compile gradleApi()
compile localGroovy()
}
group = 'com.github.skazzyy.gradle.plugins'
version = '0.1.0'
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
jacoco {
//this new version is Java 8 compatible
toolVersion = "0.7.0.201403182114"
}
task testSampleJava(type: JavaExec) {
description 'Validates the sample.build.gradle as a JavaExec task for code coverage generation'
classpath file('gradle/wrapper/gradle-wrapper.jar')
main 'org.gradle.wrapper.GradleWrapperMain'
dependsOn assemble
args '-b'
args 'sample.build.gradle'
args '-Ppsp.echo.executable=echo'
args '-Ppsp.echo.args=Hello World!'
}
check.dependsOn testSampleJava
jacoco {
applyTo testSampleJava
}
task sampleCodeCoverageReport(type:JacocoReport){
executionData testSampleJava
sourceSets sourceSets.main
}