Reputation: 312
I'm trying to build a project which has a dependency on a library xcore 1.10.0 that has a dependency on antlr with restriction [3.2.0, 3.2.1)
. What exists is a version 3.2
.
The build fails reporting Could not find any version that matches org.antlr:antlr-runtime:[3.2.0, 3.2.1).
. When I explicitly ask for version 3.2
, it resolves. When I check ava -cp "$MAVEN_HOME/lib/*" org.apache.maven.artifact.versioning.ComparableVersion 3.2 3.2.0 3.2.1
, I get the following (which I interpret as 3.2 being within the requested racket):
1. 3.2 == 3.2
3.2 == 3.2.0
2. 3.2.0 == 3.2
3.2.0 < 3.2.1
3. 3.2.1 == 3.2.1
To try this at home, one should be able to check out this example project and try running ./gradlew clean build
.
3.2
is required)? Or is Gradle doing something weird with the interpretation of the version bracket?3.2.0
to a local repository)?Upvotes: 1
Views: 87