For reference, here are the top frames of the exception stacktrace:
Caused by: org.gradle.api.GradleException: Platform project project ':frontend' implements non-common project project ':common' (`apply plugin 'kotlin-platform-kotlin'`)
at org.jetbrains.kotlin.gradle.plugin.KotlinPlatformImplementationPluginBase$addCommonProject$1.invoke(KotlinMultiplatformPlugin.kt:69)
at org.jetbrains.kotlin.gradle.plugin.KotlinPlatformImplementationPluginBase$addCommonProject$1.invoke(KotlinMultiplatformPlugin.kt:38)
at org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginKt.whenEvaluated(KotlinMultiplatformPlugin.kt:103)
at org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginKt.access$whenEvaluated(KotlinMultiplatformPlugin.kt:1)
at org.jetbrains.kotlin.gradle.plugin.KotlinPlatformImplementationPluginBase.addCommonProject(KotlinMultiplatformPlugin.kt:67)
at org.jetbrains.kotlin.gradle.plugin.KotlinPlatformImplementationPluginBase.access$addCommonProject(KotlinMultiplatformPlugin.kt:38)
at org.jetbrains.kotlin.gradle.plugin.KotlinPlatformImplementationPluginBase$apply$3.execute(KotlinMultiplatformPlugin.kt:53)
at org.jetbrains.kotlin.gradle.plugin.KotlinPlatformImplementationPluginBase$apply$3.execute(KotlinMultiplatformPlugin.kt:38)
...
Looks like this issue is not related to kotlin-frontend-plugin but rather to kotlin-platform-js. Moving all buildscript code to the root gradle file seems to solve this issue.
When used together with
kotlin-platform-js
in a multi-platform build setup, this plugin causes a build error:Our configuration of the frontend submodule:
For reference, here are the top frames of the exception stacktrace: