This repository has been archived by the owner on Dec 2, 2024. It is now read-only.
forked from opacapp/libopac-sample-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use gradle-versions-plugin to check for dependency updates.
+ This plugin adds the "dependencyUpdates" Gradle task. + Version 0.27.0 is used because it is the last version being compatible with the Gradle version used in the project. + Plugin website: https://github.com/ben-manes/gradle-versions-plugin
- Loading branch information
1 parent
643885f
commit 7199cbf
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Gradle Versions Plugin | ||
|
||
apply plugin: "com.github.ben-manes.versions" | ||
|
||
dependencyUpdates { | ||
|
||
def isNonStable = { String version -> | ||
def stableKeyword = ["RELEASE", "FINAL", "GA"].any { | ||
qualifier -> version.toUpperCase().contains(qualifier) | ||
} | ||
def regex = /^[0-9,.v-]+(-r)?$/ | ||
return !stableKeyword && !(version ==~ regex) | ||
} | ||
|
||
rejectVersionIf { | ||
isNonStable(it.candidate.version) | ||
} | ||
|
||
} |