I have a build.gradle
file with dependencies { classpath 'com.android.tools.build:gradle:0.13.3'}
and apply plugin: 'com.android.application'
.
When I do a debug build I get:
gradle clean assembleDebug
:myapp:preBuild
(...)
:myapp:compileDebugJava
Note: C:\path\to\MyClass.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:myapp:preDexDebug
(...)
:myapp:assembleDebug
BUILD SUCCESSFUL
How can I add the -Xlint:unchecked
to the underlying task? Gradle Plugin User Guide on Java compilation options is unhelpful.