Gradle build Stuck at :buildSrc:codenarcMain

I am just reporting a problem with OpenJDK7u25. When I try to build gradle, I am stuck at the task :buildSrc:codenarcMain. This task can’t be skipped so it is impossible to build Gradle.

This bug is actually because of the OpenJDK7u25 : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8016814

So if you encounter this problem, either update your JDK or use the Oracle JDK.

Hope it helps!

update your JDK or use the Oracle JDK