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 🙏

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions