Ensure Gradle sets Java 5 classpath