Building Gradle 3.0 from source fails

I’m trying to build Gardle 3.0 from source and get an error in org.gradle.cleanup.EmptyDirectoryCheckTest when compiling buildSrc. I’m on Windows 10 and the error has to do with 8.3 filenames:

``
Condition not satisfied:

tee.getCause().getMessage().contains(targetDir.path)
|   |          |            |        |         |
|   |          |            false    |         C:\Users\TILO~1.DIC\AppData\Local\Temp\junit442038523403728669\clean_me
|   |          |                     C:\Users\TILO~1.DIC\AppData\Local\Temp\junit442038523403728669\clean_me
|   |          The directory C:\Users\tilo.dickopp\AppData\Local\Temp\junit442038523403728669\clean_me\casserole\peas.txt;C:\Users\tilo.dickopp\AppData\Local\Temp\junit442038523403728669\clean_me\casserole\tuna.txt;C:\Users\tilo.dickopp\AppData\Local\Temp\junit442038523403728669\clean_me\meatloaf.txt was not empty.
|   org.gradle.api.GradleException: The directory C:\Users\tilo.dickopp\AppData\Local\Temp\junit442038523403728669\clean_me\casserole\peas.txt;C:\Users\tilo.dickopp\AppData\Local\Temp\junit442038523403728669\clean_me\casserole\tuna.txt;C:\Users\tilo.dickopp\AppData\Local\Temp\junit442038523403728669\clean_me\meatloaf.txt was not empty.
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':leftovers'.

at org.gradle.cleanup.EmptyDirectoryCheckTest.reports existing files and errors(EmptyDirectoryCheckTest.groovy:85)

``

Hi Tilo,

This issue has already been fixed (https://github.com/gradle/gradle/pull/679). The fix will be included in the 3.1 release.

For now, you could use one of the nightly builds (https://gradle.org/gradle-nightly-build).