{"action":"created","issue":{"url":"https://api.github.com/repos/ben-manes/gradle-versions-plugin/issues/150","repository_url":"https://api.github.com/repos/ben-manes/gradle-versions-plugin","labels_url":"https://api.github.com/repos/ben-manes/gradle-versions-plugin/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/ben-manes/gradle-versions-plugin/issues/150/comments","events_url":"https://api.github.com/repos/ben-manes/gradle-versions-plugin/issues/150/events","html_url":"https://github.com/ben-manes/gradle-versions-plugin/issues/150","id":216196384,"number":150,"title":"revision param not working when version has suffix","user":{"login":"vanta","id":2153370,"avatar_url":"https://avatars2.githubusercontent.com/u/2153370?v=3","gravatar_id":"","url":"https://api.github.com/users/vanta","html_url":"https://github.com/vanta","followers_url":"https://api.github.com/users/vanta/followers","following_url":"https://api.github.com/users/vanta/following{/other_user}","gists_url":"https://api.github.com/users/vanta/gists{/gist_id}","starred_url":"https://api.github.com/users/vanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanta/subscriptions","organizations_url":"https://api.github.com/users/vanta/orgs","repos_url":"https://api.github.com/users/vanta/repos","events_url":"https://api.github.com/users/vanta/events{/privacy}","received_events_url":"https://api.github.com/users/vanta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-22T20:24:36Z","updated_at":"2017-03-22T20:30:17Z","closed_at":null,"body":"I used `./gradlew dependencyUpdates -Drevision=milestone` command and got a output:\r\n\r\n`org.mockito:mockito-all [1.9.0 -> 2.0.2-beta]`\r\n\r\nwhich I think it should not be there, I expect latest `1.9.x` version to be found, not `2.x`. \r\n\r\nI suspect this is because of `-beta` suffix, I cannot see this issue for dependencies without such suffix, but can see for others with it:\r\n\r\n```\r\n - org.jboss.resteasy:resteasy-cdi [2.3.5.Final -> 3.1.1.Final]\r\n - org.jboss.resteasy:resteasy-jaxrs [2.3.5.Final -> 3.1.1.Final]\r\n - org.jboss.resteasy:resteasy-multipart-provider [2.3.5.Final -> 3.1.1.Final]\r\n - org.jboss.spec:jboss-javaee-6.0 [1.0.0.Final -> 3.0.3.Final]\r\n```"},"comment":{"url":"https://api.github.com/repos/ben-manes/gradle-versions-plugin/issues/comments/288529239","html_url":"https://github.com/ben-manes/gradle-versions-plugin/issues/150#issuecomment-288529239","issue_url":"https://api.github.com/repos/ben-manes/gradle-versions-plugin/issues/150","id":288529239,"user":{"login":"ben-manes","id":378614,"avatar_url":"https://avatars0.githubusercontent.com/u/378614?v=3","gravatar_id":"","url":"https://api.github.com/users/ben-manes","html_url":"https://github.com/ben-manes","followers_url":"https://api.github.com/users/ben-manes/followers","following_url":"https://api.github.com/users/ben-manes/following{/other_user}","gists_url":"https://api.github.com/users/ben-manes/gists{/gist_id}","starred_url":"https://api.github.com/users/ben-manes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben-manes/subscriptions","organizations_url":"https://api.github.com/users/ben-manes/orgs","repos_url":"https://api.github.com/users/ben-manes/repos","events_url":"https://api.github.com/users/ben-manes/events{/privacy}","received_events_url":"https://api.github.com/users/ben-manes/received_events","type":"User","site_admin":false},"created_at":"2017-03-22T20:30:17Z","updated_at":"2017-03-22T20:30:17Z","body":"The revision parameter is an Ivy concept, from back when Gradle used that to resolve dependencies. It was our only way to differentiate between a release and `SNAPSHOT` in a maven repository. It remains mostly because users with Ivy repositories might use that concept, too.\r\n\r\nOn Maven Central you'll see that the [latest version](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.mockito%22%20a%3A%22mockito-all%22) is `2.0.2-beta`. Note that `mockito-all` was deprecated and they are now on `2.7.19`.\r\n\r\nI think you'd probably want a `resolutionStrategy` to filter out undesirable versions. That should let you ignore `-beta` if desired."}}
{"actor":{"display_login":"ben-manes"}}