I'm starting to use Gradle as my build tool of choice. I've got an issue with the integration of Gradle in IntelliJ. Whenever I change the version of a dependency in the Gradle build file and hit the refresh button in the JetGradle tool window, I see the new version of the dependency as well as the old version of the dependency. I can import the new version from the JetGradle window, and IntelliJ refreshes the project structure, but the old version stays in the project dependencies and there's no way (that I can see at least) to remove the old one. The old version of the dependency even stays present in the JetGradle window.
The same situation happens if I remove a dependency altogether from the Gradle build file. It stays in the project structure.
Am I missing something?
Thanks a lot