1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

Do not use deprecated jacoco plugin API

This commit is contained in:
Florian Schmaus 2019-02-05 13:47:38 +01:00
parent 6edc444b6a
commit 91f200dca0

View file

@ -187,8 +187,8 @@ allprojects {
jacocoTestReport { jacocoTestReport {
dependsOn test dependsOn test
sourceDirectories = project.files(sourceSets.main.allSource.srcDirs) getSourceDirectories().setFrom(project.files(sourceSets.main.allSource.srcDirs))
classDirectories = project.files(sourceSets.main.output) getClassDirectories().setFrom(project.files(sourceSets.main.output))
reports { reports {
xml.enabled true xml.enabled true
} }
@ -578,9 +578,9 @@ coveralls {
task jacocoRootReport(type: org.gradle.testing.jacoco.tasks.JacocoReport) { task jacocoRootReport(type: org.gradle.testing.jacoco.tasks.JacocoReport) {
dependsOn = projectsWithUnitTests.jacocoTestReport dependsOn = projectsWithUnitTests.jacocoTestReport
sourceDirectories = files(projectsWithUnitTests.sourceSets.main.allSource.srcDirs) getSourceDirectories().setFrom(files(projectsWithUnitTests.sourceSets.main.allSource.srcDirs))
classDirectories = files(projectsWithUnitTests.sourceSets.main.output) getClassDirectories().setFrom(files(projectsWithUnitTests.sourceSets.main.output))
executionData = files(projectsWithUnitTests.jacocoTestReport.executionData) getExecutionData().setFrom(files(projectsWithUnitTests.jacocoTestReport.executionData))
reports { reports {
xml.enabled true xml.enabled true
xml.destination file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml") xml.destination file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml")