I have a multiplatform project targeting jvm, andr...
# multiplatform
d
I have a multiplatform project targeting jvm, android and ios. I have a buildSrc module with
kotlin-gradle-plugin:1.3.11
as a dependency. The same version of the plugin is applied to the whole project. When building, I get the following error:
Copy code
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':client-shared:compileKotlinJvm'.

Caused by: java.lang.NoSuchMethodError: org.jetbrains.kotlin.incremental.BuildUtilKt.makeModuleFile(Ljava/lang/String;ZLjava/io/File;Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/io/File;
	at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runJvmCompiler(GradleKotlinCompilerRunner.kt:102)
	at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompiler$kotlin_gradle_plugin(Tasks.kt:405)
	at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompiler$kotlin_gradle_plugin(Tasks.kt:309)
	at org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.execute(Tasks.kt:270)
<12 hidden>
	... 29 more
I suspect there are multiple versions of the plugin on the gradle classpath somehow.
b
Why did you apply the plugin as a dependency? Is it to use the kotlin dsl? Then you can just do this https://github.com/bitsydarel/clean-arch/blob/master/buildSrc/build.gradle.kts
d
I need it for my mpp utilities
Using gradle-kotlin-dsl which isn't exactly well supported by the mpp