https://kotlinlang.org logo
Title
d

dsvoronin

06/15/2018, 3:30 PM
Is there any way to override embeddedKotlinVersion? Iam using gradle 4,8 (kotlin dsl 0.17.5 , kotlin embedded 1.2.41) and kotlin version 1.2.50 in project
buildSrc/build.gradle.kts
contains
plugins { kotlin-dsl}
and root build.gradle.kts overrides kotlin plugin version with
buildscript {
    val kotlinVersion: String by project
    dependencies {
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
    }
}
getting this warning on kotlin compilation tasks
Compilation with Kotlin compile daemon was not successful
java.lang.NoSuchMethodError: org.jetbrains.kotlin.daemon.common.IncrementalCompilationOptions.<init>(ZLjava/util/List;Ljava/util/List;Ljava/io/File;Ljava/lang/String;ILorg/jetbrains/kotlin/daemon/common/CompilerMode;Lorg/jetbrains/kotlin/daemon/common/CompileService$TargetPlatform;[Ljava/lang/Integer;I[Ljava/lang/Integer;ZLjava/util/List;Lorg/jetbrains/kotlin/daemon/common/MultiModuleICSettings;Lorg/jetbrains/kotlin/daemon/common/IncrementalModuleInfo;)V
        at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.incrementalCompilationWithDaemon(GradleKotlinCompilerRunner.kt:264)
seems like IncrementalCompilationOptions signature changed between 1.2.41 and 1.2.50 and i have 1.2.41 version in runtime classpath
basically i need to push 1.2.50 daemon runtime, but don’t know how to do it properly, while it’s embedded via kotlin-dsl