Gradle doesn’t do any mapping for version range syntax, but I believe that ‘1.7.+’ is also supported by Maven. Have you tried using ‘[1.7,)’ in the build script?
You mean in the build.gradle script? That’s the wrong syntax for gradle AFAIK.
If you try adding a maven dependency on the pom that’s generate, you get this error:
Could not find artifact org.slf4j:slf4j-api:jar:1.7.+ in central (http://repo1.maven.org/maven2/) so that appears to be the wrong syntax. That’s why I linked this which describes the different syntaxes for their dynamic dependencies:
Thanks, Peter. Is this an officially support dynamic version syntax? The Gradle manual seems to specify the + syntax here and has no mention you can use the Maven syntax:
Thanks, Peter. Could you guys update the Gradle docs to include examples of this? Most people probably don’t know about it. I don’t think I’ve ever seen this syntax in any open source projects I’ve looked at…
This has since been fixed and will be released in Gradle 2.3. It will also be enforced for deployments to the Central Repository to avoid incompatibilities.