|
@@ -4,6 +4,8 @@ subprojects {
|
4
|
4
|
apply plugin: 'com.dmdirc.git-version'
|
5
|
5
|
apply plugin: 'maven-publish'
|
6
|
6
|
apply plugin: 'java'
|
|
7
|
+ apply plugin: 'jacoco'
|
|
8
|
+ apply plugin: 'com.github.kt3k.coveralls'
|
7
|
9
|
|
8
|
10
|
sourceSets {
|
9
|
11
|
main.java.srcDirs = ['src']
|
|
@@ -104,6 +106,13 @@ subprojects {
|
104
|
106
|
artifacts {
|
105
|
107
|
archives javadocJar, sourcesJar
|
106
|
108
|
}
|
|
109
|
+
|
|
110
|
+ jacocoTestReport {
|
|
111
|
+ reports {
|
|
112
|
+ xml.enabled = true // coveralls plugin depends on xml format report
|
|
113
|
+ html.enabled = true
|
|
114
|
+ }
|
|
115
|
+ }
|
107
|
116
|
}
|
108
|
117
|
|
109
|
118
|
task wrapper(type: Wrapper) {
|
|
@@ -130,5 +139,6 @@ buildscript {
|
130
|
139
|
|
131
|
140
|
dependencies {
|
132
|
141
|
classpath group: 'com.dmdirc', name: 'git-version', version: '1.0'
|
|
142
|
+ classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.1.0'
|
133
|
143
|
}
|
134
|
144
|
}
|