kyonifer
03/20/2018, 6:04 PMplugins{ kotlin("jvm") version extra["kotlinVersion"] }
in kotlin-dsl? (to keep nested projects using the same version of kotlin) The above complains that extra isnt visible from the plugins blockmkobit
03/20/2018, 6:05 PMkyonifer
03/20/2018, 6:08 PMCzar
03/20/2018, 7:15 PMplugins
block and setting it in `settings.gradle.kts`: pluginManagement {
repositories {
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
val kotlinVersion = gradle.rootProject.extra["kotlinVersion"] as String
if (requested.id.id.startsWith("org.jetbrains.kotlin")) {
println("Using Kotlin version: $kotlinVersion for ${requested.id.id}")
useVersion(kotlinVersion)
}
}
}
}
mkobit
03/20/2018, 7:32 PMgradle/kotlin-version.txt
Czar
03/20/2018, 8:23 PMgradle.properties
?mkobit
03/20/2018, 9:03 PMbuildSrc
then i could read it out of the file, but that may not be entirely necessary anymoreCzar
03/21/2018, 6:51 AM