2022-04-21 07:36:51 -07:00
|
|
|
plugins {
|
|
|
|
`kotlin-dsl`
|
|
|
|
}
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
dependencyLocking {
|
2024-01-02 06:15:27 -08:00
|
|
|
// This property is treated specially, as it is not defined by default in the root gradle.properties
|
|
|
|
// and declaring it in the root gradle.properties is ignored by included builds. This only picks up
|
|
|
|
// a value declared as a system property, a command line argument, or an environment variable.
|
|
|
|
val isDependencyLockingEnabled = if (project.hasProperty("ZCASH_IS_DEPENDENCY_LOCKING_ENABLED")) {
|
|
|
|
project.property("ZCASH_IS_DEPENDENCY_LOCKING_ENABLED").toString().toBoolean()
|
|
|
|
} else {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
if (isDependencyLockingEnabled) {
|
|
|
|
lockAllConfigurations()
|
|
|
|
}
|
2022-04-21 07:36:51 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencyLocking {
|
2024-01-02 06:15:27 -08:00
|
|
|
// This property is treated specially, as it is not defined by default in the root gradle.properties
|
|
|
|
// and declaring it in the root gradle.properties is ignored by included builds. This only picks up
|
|
|
|
// a value declared as a system property, a command line argument, or an environment variable.
|
|
|
|
val isDependencyLockingEnabled = if (project.hasProperty("ZCASH_IS_DEPENDENCY_LOCKING_ENABLED")) {
|
|
|
|
project.property("ZCASH_IS_DEPENDENCY_LOCKING_ENABLED").toString().toBoolean()
|
|
|
|
} else {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
if (isDependencyLockingEnabled) {
|
|
|
|
lockAllConfigurations()
|
|
|
|
}
|
2022-04-21 07:36:51 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-05-18 06:25:19 -07:00
|
|
|
implementation(libs.kotlin.gradle)
|
|
|
|
implementation(libs.kotlinx.kover.gradle)
|
|
|
|
implementation(libs.detekt.gradle)
|
2022-04-21 07:36:51 -07:00
|
|
|
}
|