How do I use the latest version of dependency

(sirinath1978m) #1

Always get the latest build or snapshot

(sirinath1978m) #2

E.g. Can I use

dependencies {
  [group: 'org.codehaus.jsr166-mirror', name: 'jsr166y', version: '+'],
  [group: 'org.codehaus.jsr166-mirror', name: 'extra166y', version: '+'],
  [group: 'org.codehaus.groovy', name: 'groovy-all', version: '+']


You can use the version string “latest.integration” to achieve this. This is a dynamic version that tells Gradle to use the very latest version of a dependency.

Note that for a maven repository, this feature requires that the list of all available versions is published in a maven-metadata.xml file.