anyone know how to construct a gradle version rang...
# arrow
p
anyone know how to construct a gradle version range or selectionrule to select the latest patch version but exclude the alpha/beta/rc versions, currently
1.0.+
matches
1.0.2-alpha.25
😬
anything better than?
Copy code
configurations.all {
    resolutionStrategy {
        componentSelection {
            all {
                if (candidate.version.contains("alpha"))
                    reject("no alpha versions for $candidate")
            }
        }
    }
}
s
Ouch… It should be relatively safe to consume post
1.x.x
, but adding such resolution strategy is probably best option. You might also want to exclude
beta
and
rc
. Although
rc
would be great if people in the wild test them as a sort of community build to report issues or breaking changes 😄
If anything breaks in the alpha, than that should be an issue and we should fix it before release since we don’t want any breakage across 1.x.x versions.