How to never show alpha/beta updates versions that are currently stable #537
-
I basically sort deps into two buckets.
This plugin out of the box is great for 2, but I do want to be able to say "Hey if I'm using a stable version, don't show me alpha/beta/etc versions" How would I do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
It sounds like you'd want to use rejectVersionsIf (which is shorthand for a component selection rule). This will reject newer versions that do not match the predicate and evaluate the next version, until it finds an acceptable match. Note that an suggested
tasks.named("dependencyUpdates").configure {
rejectVersionIf {
isNonStable(it.candidate.version) && !isNonStable(it.currentVersion)
}
} |
Beta Was this translation helpful? Give feedback.
It sounds like you'd want to use rejectVersionsIf (which is shorthand for a component selection rule). This will reject newer versions that do not match the predicate and evaluate the next version, until it finds an acceptable match. Note that an suggested
isNonStable
function is supplied in the readme, but we don't classify as such because there are many different versioning styles in the wild.