Gradle refresh for SNAPSHOT dependencies

Answered

We use snapshot dependencies.  When a new snapshot version is available we would expect the latest version to be pulled in via 'Refresh all Gradle projects' but this is not happening.  However build.gradle pulls in latest snapshot versions as expected when running from command line.  This leads me to think there is an issue with IntelliJ and gradle.  Any ideas?

build.gradle:

configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}

dependencies {
compile group: "com.myapp", name: "myapp-common", version: "0.2.0-SNAPSHOT"
}

 

IntelliJ IDEA 2016.3

3
3 comments
Avatar
Permanently deleted user

Still the strategy required refreshing all dependencies. It would be great to just refresh one dependency, it'd save huge amounts of time.

1

@Xavier Gradle itself does not provide possibility to refresh single dependency. You might want to raise this request with Gradle.

Note that if you need to refresh only outdated dependencies you can use re-import action.

1

Please sign in to leave a comment.