2021-10-19 06:24:45 -07:00
|
|
|
import org.jetbrains.kotlin.konan.properties.loadProperties
|
|
|
|
|
|
|
|
plugins {
|
2021-11-11 05:41:00 -08:00
|
|
|
`kotlin-dsl-base`
|
2021-10-19 06:24:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
val rootProperties = getRootProperties()
|
|
|
|
|
|
|
|
implementation("org.eclipse.jgit:org.eclipse.jgit:${rootProperties.getProperty("JGIT_VERSION")}")
|
|
|
|
}
|
|
|
|
|
|
|
|
// A slightly gross way to use the root gradle.properties as the single source of truth for version numbers
|
|
|
|
fun getRootProperties() = loadProperties(File(project.projectDir.parentFile, "gradle.properties").path)
|