简体   繁体   中英

How to update gradle dependencies without building the project

I'm looking for a way to refresh my gradle dependencies without having to rebuild the project. I'm using Intellij and its Gradle Wrapper. I've tried running the task 'Dependencies' from IntelliJ's gradle UI, I've tried running the command gradle --refresh-dependencies AND gradlew --refresh-dependencies , both don't work. The only way to make gradle download new dependencies is to use Refresh All Gradle Project from IntelliJ UI but I don't like doing this because gradle automatically runs some tasks I don't want to run when I'm only looking to refresh the dependencies.

尝试运行./gradlew dependencies --refresh-dependencies ,它将列出依赖项并下载它们而不构建。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM