diff --git a/libraries/tools/kotlin-maven-sam-with-receiver/pom.xml b/libraries/tools/kotlin-maven-sam-with-receiver/pom.xml
index a75bddaf177..5e8e23a2dc6 100755
--- a/libraries/tools/kotlin-maven-sam-with-receiver/pom.xml
+++ b/libraries/tools/kotlin-maven-sam-with-receiver/pom.xml
@@ -6,8 +6,12 @@
4.0.0
3.0.5
- ${basedir}/../../../plugins/sam-with-receiver/sam-with-receiver-cli/src
- ${basedir}/../../../plugins/sam-with-receiver/sam-with-receiver-cli/resources
+ ${basedir}/../../../plugins/sam-with-receiver/sam-with-receiver.common/src
+ ${basedir}/../../../plugins/sam-with-receiver/sam-with-receiver.k1/src
+ ${basedir}/../../../plugins/sam-with-receiver/sam-with-receiver.k2/src
+ ${basedir}/../../../plugins/sam-with-receiver/sam-with-receiver.backend/src
+ ${basedir}/../../../plugins/sam-with-receiver/sam-with-receiver.cli/src
+ ${basedir}/../../../plugins/sam-with-receiver/sam-with-receiver.cli/resources
${basedir}/src/main/kotlin
@@ -52,7 +56,11 @@
add-source
- ${sam.src}
+ ${sam.common.src}
+ ${sam.k1.src}
+ ${sam.k2.src}
+ ${sam.backend.src}
+ ${sam.cli.src}
${sam.maven.plugin.src}
diff --git a/prepare/ide-plugin-dependencies/sam-with-receiver-compiler-plugin-for-ide/build.gradle.kts b/prepare/ide-plugin-dependencies/sam-with-receiver-compiler-plugin-for-ide/build.gradle.kts
index b4a0103b8ff..8cf9eb8c778 100644
--- a/prepare/ide-plugin-dependencies/sam-with-receiver-compiler-plugin-for-ide/build.gradle.kts
+++ b/prepare/ide-plugin-dependencies/sam-with-receiver-compiler-plugin-for-ide/build.gradle.kts
@@ -2,4 +2,9 @@ plugins {
kotlin("jvm")
}
-publishJarsForIde(listOf(":kotlin-sam-with-receiver-compiler-plugin"))
+publishJarsForIde(
+ listOf(
+ "::kotlin-sam-with-receiver-compiler-plugin.common",
+ "::kotlin-sam-with-receiver-compiler-plugin.k1"
+ )
+)