Skip to content

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

Description

@Drjacky

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 🙏

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions