[GRADLE-3089] 1.12 fails with NullPointerException on missing dependency Created: 14/May/14 Updated: 05/Aug/14 Resolved: 05/Aug/14 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 2.0-rc-1 |
Type: | Bug | ||
Reporter: | Gradle Forums | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Description |
Starting from 1.12 Gradle fails with NullPointerException as a reason on missing dependency:
Gradle 1.11 fails with:
which doesn't suggest anything unexpected (I've got a bug report where the user suspected some additional bug in my plugin instead of just missing dependency). |
Comments |
Comment by Gradle Forums [ 14/May/14 ] |
Cannot reproduce. Please provide a minimal reproducible example, and post the stack trace (`--stacktrace`) as a Github Gist or similar. |
Comment by Gradle Forums [ 14/May/14 ] |
Just clone my plugin from [1]https://github.com/szpak/gradle-pites... and change JUnit version to 4.111 (or anything else which doesn't exist) and run gradle test --stacktrace using Gradle 1.12. The stacktrace: [2]https://gist.github.com/szpak/03c36a2... |
Comment by Gradle Forums [ 14/May/14 ] |
Thanks for the report. Until the NPE gets fixed, removing `mavenLocal()` will solve the problem. Note that `mavenLocal()` should only be used if artifacts need to be exchanged with a local Maven build. |