Changed tasks.withType(Compile) to JavaCompile, since Compile has been d...

...epreciated in favor of JavaCompile and was finally removed in 2.0