From d837e72aee8f08fe936b00af9bdf8599c5ea62a0 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 2 Jan 2021 17:11:25 +0000 Subject: [PATCH] Enforce consistent version of Kotlin's stdlib across the whole project I think something pulls in 1.3's standard library, which confuses IDEA. Signed-off-by: Graham --- build.gradle.kts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 1891270958..44bcc849c3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -119,6 +119,15 @@ configure(subprojects.filter { it.isFree }) { apply(plugin = "org.jmailen.kotlinter") dependencies { + val api by configurations + for (module in listOf("stdlib", "stdlib-common", "stdlib-jdk7", "stdlib-jdk8")) { + api("org.jetbrains.kotlin:kotlin-$module") { + version { + strictly(Versions.kotlin) + } + } + } + val implementation by configurations implementation(kotlin("reflect")) implementation("com.michael-bull.kotlin-inline-logger:kotlin-inline-logger:${Versions.inlineLogger}")