Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning about variant.getJavaCompile() being obsolete #22

Open
roskakori opened this issue Jul 31, 2019 · 0 comments
Open

Warning about variant.getJavaCompile() being obsolete #22

roskakori opened this issue Jul 31, 2019 · 0 comments
Assignees

Comments

@roskakori
Copy link

Thanks for the nice integration of FindBugs. However, once I add

buildscript {
    repositories {
        jcenter()
        // ...
    }

    dependencies {
        classpath 'com.chaitanyapramod.gradle:findbugs-android:1.0'
        // ...
    }
}
apply plugin: 'com.android.application'
apply plugin: 'com.chaitanyapramod.findbugs-android'

to my build.gradle the following warning shows up:

WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.

After removing the "apply", the warning is gone.

Considering that "end of 2019" is in a few months this probably should be addressed in the near future.

@ChaitanyaPramod ChaitanyaPramod self-assigned this Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants