[GRADLE-1283] Running a built-from-source gradle fails with Unexpected Gradle version Created: 04/Jan/11  Updated: 04/Jan/13  Resolved: 04/Jan/11

Status: Resolved
Project: Gradle
Affects Version/s: 0.9.1
Fix Version/s: 0.9.2

Type: Bug
Reporter: John Gibson Assignee: Hans Dockter
Resolution: Fixed Votes: 0


If you build Gradle from source and try to run it against a project then you can get the following error:
% ~/Code/gradle/stock/bin/gradle -t

FAILURE: Build failed with an exception.

  • What went wrong:
    Unexpected Gradle version '1.0-milestone-1-20110104132106-0800'.

I've tracked this down to GradleVersion.java. A recently added version regex always assumes that the divider between the time and the timezone is + (which doesn't happen if your machine is set to a timezone west of Greenwich).

Comment by John Gibson [ 04/Jan/11 ]

I've written a fix, checked it into Github, and filed a pull request.


Note that I haven't tested it with a build in a timezone east of Greenwich (because I don't have any machines in that timezone).

Comment by Adam Murdoch [ 04/Jan/11 ]

Applied. Thank you for the patch.

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