Move sourceDirectories to config time

This commit is contained in:
Bradlee Speice 2014-12-05 23:28:26 -05:00
parent 67646cde2e
commit e4ab12f4ab

View File

@ -72,9 +72,13 @@ jacocoTestReport {
// And finally tell Jacoco to only include said files in the report // And finally tell Jacoco to only include said files in the report
classDirectories = outputTree classDirectories = outputTree
sourceDirectories = files(androidModule.android.sourceSets.main.java.srcDirs)
} }
// We must specify sourceDirectories here (not in doFirst) because this
// will happen at configuration time. We only want to change classDirectories
// when generating the actual report
sourceDirectories = files(androidModule.android.sourceSets.main.java.srcDirs)
reports { reports {
xml.enabled true xml.enabled true
} }