-
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.
Refresh dependencies to latest stable (#3)
- Loading branch information
1 parent
02f0197
commit 428a872
Showing
83 changed files
with
1,259 additions
and
319 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 |
---|---|---|
|
@@ -10,5 +10,8 @@ | |
**/local.properties | ||
**/build | ||
|
||
# Kotlin | ||
.kotlin | ||
|
||
# OS | ||
.DS_Store |
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
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
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 |
---|---|---|
@@ -1,23 +1,15 @@ | ||
dependencyUpdates.resolutionStrategy { | ||
componentSelection { rules -> | ||
rules.all { ComponentSelection selection -> | ||
boolean rejected = ["alpha", "beta", "rc", "cr", "m", "preview"].any { qualifier -> | ||
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/ | ||
} | ||
if (rejected) { | ||
selection.reject("Release candidate") | ||
} | ||
} | ||
} | ||
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 { | ||
rejectVersionIf { | ||
isNonStable(it.candidate.version) | ||
} | ||
} | ||
|
||
versionCatalogUpdate { | ||
sortByKey = false | ||
|
||
keep { | ||
keepUnusedVersions = true | ||
keepUnusedLibraries = true | ||
keepUnusedPlugins = true | ||
} | ||
} |
Oops, something went wrong.