GradleDependenciesHelperPlugin icon indicating copy to clipboard operation
GradleDependenciesHelperPlugin copied to clipboard

It doesn't work if you write variable for version number AND implement dependency with def keyword

Open Drjacky opened this issue 7 years ago • 0 comments

If we write version number on top of the build.gradle file and use it on ahead of a standalone string keyword, the plugin doesn't work and doesn't show any suggestion. Like:

dependencies.gradle:

ext {
retrofit2Version = '2.4.0'

// Data
    dataDependencies = [
retrofit: "com.squareup.retrofit2:retrofit:$retrofit2Version" //It doesn't show any suggestion HERE.
]

data build.gradle:

dependencies {
def dataDependencies = rootProject.ext.dataDependencies

implementation dataDependencies.retrofit
}

Thanks :pray:

Drjacky avatar Sep 28 '18 11:09 Drjacky