We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 710f130 commit 331fa7bCopy full SHA for 331fa7b
src/main/groovy/com/vanniktech/android/junit/jacoco/GenerationPlugin.groovy
@@ -223,8 +223,11 @@ class GenerationPlugin implements Plugin<Project> {
223
private static addJacocoMergeToRootProject(final Project project, final JunitJacocoExtension extension) {
224
project.plugins.apply('jacoco')
225
226
- project.jacoco {
227
- toolVersion extension.jacocoVersion
+ project.afterEvaluate {
+ // Apply the Jacoco version after evaluating the project so that the extension could be configured
228
+ project.jacoco {
229
+ toolVersion extension.jacocoVersion
230
+ }
231
}
232
233
def mergeTask = project.task("mergeJacocoReports", type: JacocoMerge) {
0 commit comments