dff13ec584
Review: https://jetbrains.team/p/kt/reviews/8401 - Code style - Drop unused properties in kotlin-native/build.gradle - kotlin-native/build.gradle: drop unused import - use final instead of open when possible This is just a cleanup commit. It neither fixes any issue/bug, nor introduces new behaviour. Feel free to revert this commit if you find out that it breaks something
26 lines
915 B
Groovy
26 lines
915 B
Groovy
def kotlinRoot = ext.properties.containsKey("rootBuildDirectory") ? file("${ext.rootBuildDirectory}/..") : rootProject.projectDir
|
|
File versionPropertiesFile = new File(kotlinRoot, "gradle/versions.properties")
|
|
def versionProperties = new Properties()
|
|
versionPropertiesFile.withInputStream {
|
|
versionProperties.load(it)
|
|
}
|
|
|
|
project.buildscript.configurations.all {
|
|
resolutionStrategy.eachDependency {
|
|
if (requested.group == "com.google.code.gson" && requested.name == "gson") {
|
|
useVersion(versionProperties['versions.gson'])
|
|
because("Force using same gson version because of https://github.com/google/gson/pull/1991")
|
|
}
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
kotlinCompilerClasspath
|
|
}
|
|
|
|
if (!(project.findProperty("withoutEmbedabble")?.toString()?.toBoolean() ?: false)) {
|
|
project.dependencies {
|
|
kotlinCompilerClasspath(project(":kotlin-compiler-embeddable"))
|
|
}
|
|
}
|