Why the Gradle Central Plugin Repository does not support dynamic plugin versions?

plugins

(Horcrux7) #1

Is this feature scheduled for the future or there are important things that prevent dynamic version numbers?


(Szczepan Faber) #2

I am a very happy user of plugin portal and I really need to depend on the latest version.

Gradle team, is this intentional that Gradle Plugin Portal does not support dynamic versions? It’s been 1.5y since it was reported. Is this something you want to provide in the future / not / don’t know yet?

When I try to declare dynamic version on a plugin that is published to the portal:

* What went wrong:
A problem occurred configuring root project 'mockito'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not find any matches for gradle.plugin.org.mockito:mockito-release-tools:0.0.+ as no versions of gradle.plugin.org.mockito:mockito-release-tools are available.
     Searched in the following locations:
         https://jcenter.bintray.com/gradle/plugin/org/mockito/mockito-release-tools/maven-metadata.xml
         https://jcenter.bintray.com/gradle/plugin/org/mockito/mockito-release-tools/
         https://plugins.gradle.org/m2/gradle/plugin/org/mockito/mockito-release-tools/maven-metadata.xml
         https://plugins.gradle.org/m2/gradle/plugin/org/mockito/mockito-release-tools/
     Required by:
         :mockito:unspecified

(Ben Manes) #3

This also means that you can’t discover updates, too. This issue has been reported on multiple occasions with no response.