[GRADLE-2829] using JacocoMerge throws error "You can't map a property that does not exist: propertyName=destFile" Created: 08/Jul/13 Updated: 09/Jul/13 Resolved: 09/Jul/13 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.7-rc-1 |
Fix Version/s: | 1.7-rc-2 |
Type: | Bug | ||
Reporter: | Gradle Forums | Assignee: | Luke Daley |
Resolution: | Fixed | Votes: | 0 |
Description |
After upgrading Gradle from 1.6 to 1.7-rc-1, Gradle fails to evaluate build files with JacocoMerge tasks.
build.gradle: apply plugin: 'jacoco' task merge(type: JacocoMerge) { This problem is probably caused by [JacocoPlugin]([1]https://github.com/gradle/gradle/blob...), which is using destFile instead of destinationFile. |
Comments |
Comment by Gradle Forums [ 08/Jul/13 ] |
Can you run with -s and paste the stacktrace please. |
Comment by Gradle Forums [ 08/Jul/13 ] |
org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'gradle-test'. |
Comment by Gradle Forums [ 08/Jul/13 ] |
After changing destFile to destinationFile in JacocoPlugin.configureDefaultOutputPathForJacocoMerge and recompiling Gradle, everything seems to work fine. |
Comment by Gradle Forums [ 08/Jul/13 ] |
Well caught. The JaCoCo plugin is still @incubating, which means it is subject to non-backward-compatible changes. It's always worth checking the "Potential Breaking Changes" section of the release notes: [1]http://www.gradle.org/docs/release-ca.... |
Comment by Gradle Forums [ 08/Jul/13 ] |
Maybe I wasn't clear. This issue is caused by [one occurrence of *destFile*]([1]https://github.com/gradle/gradle/blob...) which hasn't been changed to destinationFile in [b6bed9d2]([2]https://github.com/gradle/gradle/comm...). |
Comment by Gradle Forums [ 08/Jul/13 ] |
Thanks Artur. We'll fix this for the next RC and final release. |