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

How to have automatic update of gradle dependencies by using a defined file for dependencies? #9

Open
FlorianChps opened this issue Mar 12, 2018 · 2 comments

Comments

@FlorianChps
Copy link

FlorianChps commented Mar 12, 2018

Hi,

In my project, I have a dependencies.gradle file. In this one, I have differents arrays of dependencies with corresponding version.

I would like to know if is there a way to have automatic update available version for dependency with this way ?

For example, if i declare com.android.support:appcompat-v7:27.0.2 in build.gradle directly, it'll tell me that a new version is available. Actually, it's declared in my dependencies.gradle like this :

appCompat : "com.android.support:appcompat-v7:$appCompatVersion"

and the version is in the same file, define above like this : appCompatVersion = "27.0.2"

Android Studio doesn't tell me that a new version is available. I'm looking on internet but didn't find anything. Does any one know how I can proceed to achieve this ?

@melihaksoy
Copy link

Hi !

I had the same issue and asked for a solution on stackOverflow couple months ago, and I've been suggested this should be requested as a feature.

Although now on Android Studio 3.2 Canary 5 dependencies imported this way started to appear, update alert still doesn't show up either on build.gradle file or project structure dialog.

@FlorianChps
Copy link
Author

Ok @melihaksoy ! Thank you for your answer. Now waiting for IntelliJ update then :)

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

No branches or pull requests

3 participants