Lint: “New library versions available” when using variables

I have a project with three subprojects. I want 3 subprojects to use the same dependency versions, so I took into account all versions in the root directory build.gradle:

allprojects {
ext.versions = [
        supportLibVersion: '26.1.0',
        playServicesVersion: '11.2.2',
        retrofitVersion: '2.1.0',
        retrofitConverterGsonVersion: '2.1.0',
        retrofitRxjava2AdapterVersion: '1.0.0',
        rxjava2Version: '2.0.5',
        rxandroidVersion: '2.0.1',
        timberVersion: '4.5.1',
        ...
]
}

Now lint no longer allocates new libraries. This somehow still works for supportLibs, but not for others.

Is there any chance this work will work again?

+4
source share
1 answer

This is not an exact answer to the question. Some time ago I had the same problems (global vars were declared and referenced from files build.gradle).

gradle-versions-plugin , .

./gradlew dependencyUpdates

enter image description here

+3

Source: https://habr.com/ru/post/1685938/


All Articles