Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update single dependency in IntelliJ based on gradle build

Is it possible to get IntelliJ to update a single dependency rather than have to refresh all dependencies via the "Refresh all Gradle projects" button in the Gradle side tab?

The reason I ask is that a full refresh takes several minutes on our project (Long enough for me to write this SO question!) and I just want to update a dependency on another project I am updating locally.

like image 728
Sutty1000 Avatar asked Feb 16 '17 11:02

Sutty1000


People also ask

How do I sync Gradle dependencies in IntelliJ?

We can configure the settings for how IntelliJ IDEA syncs with Gradle by pressing the settings icon in the Gradle tool window, and selecting Auto-Reload Settings. We can set IntelliJ IDEA to automatically reload the project after "Any changes" in the build script files, so changes are automatically reloaded.


1 Answers

Unfortunatelly, it's not possible due to the Gradle architecture. We can't get partial data using the API and the full build has to be run to get the actual state of the dependencies.

like image 74
CrazyCoder Avatar answered Oct 07 '22 03:10

CrazyCoder