Gradle build doesn’t download dependencies

System caches the dependent jars so it won’t be downloaded again and again.

If your goal is to just see the downloads of the dependencies then you can force it to redownload.

Remove any dependency caches stored locally [1]

$ rm -rf ~/.gradle/caches/

Then restart your build

$ gradlew clean build

You could also force a dependency update with [2]

$ gradlew --refresh-dependencies

[1]https://docs.gradle.org/current/userguide/dependency_management.html#sec:dependency_cache
[2]https://docs.gradle.org/current/userguide/dependency_management.html#sub:cache_refresh

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)