diff --git a/libraries/examples/kotlin-gradle-subplugin-example/build.gradle b/libraries/examples/kotlin-gradle-subplugin-example/build.gradle index 1fb94c70699..5ea3908a75f 100644 --- a/libraries/examples/kotlin-gradle-subplugin-example/build.gradle +++ b/libraries/examples/kotlin-gradle-subplugin-example/build.gradle @@ -30,3 +30,8 @@ dependencies { } } } + +// Relocate `com.intellij.*` and some other classes to match those in the `kotlin-compiler-embeddable` +// (for example, the actual package at runtime is `org.jetbrains.kotlin.com.intellij.*`): +ArtifactsKt.runtimeJar(project, EmbeddableKt.rewriteDepsToShadedCompiler(project, jar, {}), {}) +// In a standalone build, you can setup the relocation with the Shadow plugin. \ No newline at end of file