Current Gradle HEAD tries parsing .zip as XML/pom

Commit 1ad2067edd620bdb418c1ee5fde8bea2f33a4546

[Fatal Error] Content is not allowed in prolog.
Finished at: 2016-07-05T10:31:13.195

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':runtime'.
> Could not resolve
  Required by:
   > Could not resolve
      > Could not parse POM /Users/huxi/.gradle/caches/modules-2/files-2.1/docbook/docbook-xsl/1.75.2/1d9a652c68cd5fd211ec8d8ae6e83c1ef4bbddc7/
         > Content is not allowed in prolog.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.



Gradle Version: 1ad2067edd620bdb418c1ee5fde8bea2f33a4546
Operating System: Mac OS X 10.11.5

Execute ./gradlew clean.

rm -r ~/.gradles/caches fixed the immediate problem. I have no idea how my cache got corrupted.

Thanks for reporting the issue. This might be the same problem as and other forum discussion Build failure caused by MetaDataParseException due to attempting to parse a .jar file as a Maven pom .