Skip to content

Commit

Permalink
[Java] Hide unstable updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyazelenko committed Jul 9, 2024
1 parent 5ee7942 commit 698176a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -945,3 +945,16 @@ tasks.register('copyTestLogs', Copy) {

includeEmptyDirs = false
}

def isNonStable = { String version ->
def stableKeyword = ['RELEASE', 'FINAL', 'GA'].any { it -> version.toUpperCase().contains(it) }
def regex = /^[0-9,.v-]+(-r)?$/
return !stableKeyword && !(version ==~ regex)
}

tasks.named('dependencyUpdates').configure {
// Reject all non stable versions
rejectVersionIf {
isNonStable(it.candidate.version)
}
}

0 comments on commit 698176a

Please sign in to comment.