2021-12-03 05:04:20 -08:00
|
|
|
dependencyLocking {
|
2022-07-22 10:00:04 -07:00
|
|
|
val isDependencyLockingEnabled = if (project.hasProperty("ZCASH_IS_DEPENDENCY_LOCKING_ENABLED")) {
|
|
|
|
project.property("ZCASH_IS_DEPENDENCY_LOCKING_ENABLED").toString().toBoolean()
|
|
|
|
} else {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isDependencyLockingEnabled) {
|
|
|
|
lockAllConfigurations()
|
|
|
|
}
|
2021-12-03 05:04:20 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
register("resolveAll") {
|
|
|
|
doLast {
|
|
|
|
configurations.filter {
|
|
|
|
// Add any custom filtering on the configurations to be resolved
|
|
|
|
it.isCanBeResolved
|
|
|
|
}.forEach { it.resolve() }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|