forked from dawnwords/jacoco-badge-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
83 lines (69 loc) · 1.8 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
83
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* User Manual available at https://docs.gradle.org/5.3.1/userguide/java_library_plugin.html
*/
plugins {
id 'java'
id 'java-gradle-plugin'
id 'maven'
id 'jacoco'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '0.10.0'
id 'com.github.kt3k.coveralls' version '2.8.2'
}
group = 'com.github.dawnwords'
version = '0.2.0'
repositories {
jcenter()
}
dependencies {
compile gradleApi()
compile 'commons-io:commons-io:2.6'
// Use TestNG framework, also requires calling test.useTestNG() below
testImplementation 'org.testng:testng:6.14.3'
testCompile 'org.mockito:mockito-core:2.28.2'
}
test {
// Use TestNG for unit tests
useTestNG()
}
gradlePlugin {
plugins {
greetingsPlugin {
id = 'com.github.dawnwords.jacoco.badge'
implementationClass = 'com.github.dawnwords.jacoco.badge.JacocoBadgePlugin'
}
}
}
pluginBundle {
description = 'Jacoco Badge Generator'
tags = ['coverage', 'badge']
website = 'https://github.com/dawnwords/jacoco-badge-gradle-plugin'
vcsUrl = 'https://github.com/dawnwords/jacoco-badge-gradle-plugin'
plugins {
greetingsPlugin {
displayName = 'Jacoco Badge Generator'
}
}
}
jacocoTestReport {
reports {
xml.enabled true
}
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.9
}
}
}
}
check.finalizedBy(jacocoTestCoverageVerification)
coveralls {
jacocoReportPath 'build/reports/jacoco/test/jacocoTestReport.xml'
}