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
😬
Peter
01/11/2022, 11:08 PM
anything better than?
Copy code
configurations.all {
resolutionStrategy {
componentSelection {
all {
if (candidate.version.contains("alpha"))
reject("no alpha versions for $candidate")
}
}
}
}
s
simon.vergauwen
01/12/2022, 8:49 AM
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 😄
simon.vergauwen
01/12/2022, 8:50 AM
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.