[GRADLE-3152] Regression: NullPointerException in Gradle 2.1-rc-1 Created: 21/Aug/14 Updated: 27/Aug/14 Resolved: 27/Aug/14 |
|
| Status: | Resolved |
| Project: | Gradle |
| Affects Version/s: | 2.1-rc-1 |
| Fix Version/s: | 2.1-rc-2 |
| Type: | Bug | ||
| Reporter: | Gradle Forums | Assignee: | Marcin Erdmann |
| Resolution: | Fixed | Votes: | 0 |
| Description |
|
Executing `gradle assemble` on [1]https://github.com/huxi/sulky throws a `NullPointerException` with Gradle 2.1-rc-1. See [2]https://travis-ci.org/huxi/sulky/jobs... for the build and [3]http://pastebin.com/sZbtqEHy for the stacktrace. The task that throws the exception looks like this: task javadocAll(type: Javadoc) { } } ---------------------------------------------------------------------------------------- |
| Comments |
| Comment by Gradle Forums [ 21/Aug/14 ] |
|
Am I right in assuming that you're not applying the `JavaBasePlugin` to the project that contains this task definition? |
| Comment by Gradle Forums [ 21/Aug/14 ] |
|
Correct. I only apply `BasePlugin`. |
| Comment by Marcin Erdmann [ 21/Aug/14 ] |
|
Looks like JavaToolChain should be injected directly into Javadoc task instead of via JavaBasePlugin. JavCompile might be affected as well. |