We use Gradle 2.1 and java plugin. During compileJava different warnings occur, for example:
warning: [options] bootstrap class path not set in conjunction w
I think it really depends on the warnings. For the warnings I was getting, this worked:
tasks.withType(JavaCompile) { options.compilerArgs += ["-nowarn", "-XDenableSunApiLintControl"] }
Sanity restored.