From 14e9930f9451320e44fed5694eb93132924ac813 Mon Sep 17 00:00:00 2001 From: Sergey Igushkin Date: Wed, 14 Feb 2018 17:42:29 +0300 Subject: [PATCH] Apply shading/relocation to the subplugin example --- .../examples/kotlin-gradle-subplugin-example/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) 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