2022-04-21 07:36:51 -07:00
|
|
|
plugins {
|
|
|
|
`kotlin-dsl`
|
|
|
|
}
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
dependencyLocking {
|
|
|
|
lockAllConfigurations()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencyLocking {
|
|
|
|
lockAllConfigurations()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-02-07 10:35:51 -08:00
|
|
|
val rootProperties = getRootProperties()
|
2023-04-19 01:31:36 -07:00
|
|
|
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${rootProperties.getProperty("KOTLIN_VERSION")}")
|
2023-02-07 10:35:51 -08:00
|
|
|
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${rootProperties.getProperty("DETEKT_VERSION")}")
|
2022-04-21 07:36:51 -07:00
|
|
|
}
|
2022-04-25 05:07:50 -07:00
|
|
|
|
|
|
|
// A slightly gross way to use the root gradle.properties as the single source of truth for version numbers
|
|
|
|
fun getRootProperties() =
|
2023-02-10 04:41:05 -08:00
|
|
|
org.jetbrains.kotlin.konan.properties.loadProperties(File(project.projectDir.parentFile, "gradle.properties").path)
|