There is a similar question to this, but none of the answers actually work. I am trying to create a windows batch script that will redownload Gradle dependencies and clear all dependencies caches. The only way that works now is clicking on "Refresh Gradle Dependencies" inside IntelliJ:
How can I achieve the same result through a terminal command or Gradle task if that is even possible?
Commands like gradlew.bat build --refresh-dependencies
or gradlew.bat --refresh-dependencies
are not redownloading all the project dependencies as the IntelliJ option does.