[GRADLE-853] meaningless error message (NPE) if gradleVersion not set for wrapper task Created: 14/Mar/10  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 0.9-rc-1

Type: Improvement
Reporter: Tomek Kaczanowski Assignee: Hans Dockter
Resolution: Fixed Votes: 0


if you omit gradle version in wrapper task, like this:

task wrapper(type: Wrapper) {

all you get is:


FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/tomek/workspace/gradle_0.9/build.gradle'
  • What went wrong:
    Execution failed for task ':wrapper'.
    Cause: java.lang.NullPointerException (no error message)
  • Try:
    Run with -s or -d option to get more details. Run with -S option to get the full (very verbose) stacktrace.


would be much better to get a meaningful error message, something like: "gradleVersion not specified"

Generated at Wed Jun 30 11:40:37 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.