Plugins redownloaded after gradle update

I recently starting using the new sonar plugin with the plugins closure syntax. I had done this with gradle 2.7 and sonar plugin downloaded correctly from plugins.gradle.com. Today I updated to gradle 2.8 and I noticed that it redownloaded version 1.0 of the sonar plugin again. Is is suppose to download it again? Seems like I already have the correct version so it shouldn’t have to download it again. The plugin jar is stored in .gradle\caches\modules-2\files-2.1\org.sonarqube.gradle which is not related to the gradle version so maybe it’s a bug in the gradle update that caused it.

Did it redownload the jar or just the metadata? There was a Gradle caching metadata change in 2.8 that may have caused that.

It failed downloading the jar. That’s just because we have a very unreliable proxy at my work. And that’s the only reason I noticed that it was downloading anything, because it failed the build when the proxy blocked it.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project '#######'.
> Could not resolve all dependencies for configuration '########:classpath'.
   > Could not download gradle-sonarqube-plugin.jar (org.sonarqube.gradle:gradle-sonarqube-plugin:1.0)
      > Could not get resource 'https://plugins.gradle.org/m2/org/sonarqube/gradle/gradle-sonarqube-plugin/1.0/gradle-sonarqube-plugin-1.0.jar'.
         > Could not GET 'https://plugins.gradle.org/m2/org/sonarqube/gradle/gradle-sonarqube-plugin/1.0/gradle-sonarqube-plugin-1.0.jar'. Received status code 407 from server: Proxy Authentication Required