Skip to content

How to never show alpha/beta updates versions that are currently stable #537

Answered by ben-manes
ColtonIdle asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Example 2: disallow release candidates as upgradable versions from stable versions

tasks.named("dependencyUpdates").configure {
  rejectVersionIf {
    isNonStable(it.candidate.version) && !isNonStable(it.currentVersion)
  }
}

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@ColtonIdle
Comment options

@ColtonIdle
Comment options

@ColtonIdle
Comment options

@ben-manes
Comment options

@ben-manes
Comment options

Answer selected by ben-manes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants