How To Display Java Compilation Warnings
Starting from SDK 6 1.6.0, the Java compilation warnings are not displayed by default. This helps avoid this know bug in the Eclipse Compiler for.
If you still want to see these warnings, you can enable them by setting the Gradle property java.compilation.warnings.enabled to true.
Be careful in this case since it can cause compilation errors to be hidden (the class files are not generated but no error is displayed).
You can configure this property in several ways:
- In a gradle.properties file located in <USER_HOME>/.gradle/ to apply it globally.
- In a gradle.properties file located at the root of your Gradle project to apply it only at the project level.
- Pass it directly via the command line using the option -Pjava.compilation.warnings.enabled=true.
