diff --git a/build.xml b/build.xml
index c6a96c57dad..7d7bfe85aac 100644
--- a/build.xml
+++ b/build.xml
@@ -576,20 +576,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -624,20 +610,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/libraries/tools/kotlin-compiler-client-embeddable/pom.xml b/libraries/tools/kotlin-compiler-client-embeddable/pom.xml
index 163d3370e37..91049f342cb 100644
--- a/libraries/tools/kotlin-compiler-client-embeddable/pom.xml
+++ b/libraries/tools/kotlin-compiler-client-embeddable/pom.xml
@@ -29,19 +29,17 @@
1.7
- attach-artifacts
- compile
+ add-sources
+ prepare-package
- attach-artifact
+ add-source
-
-
- ${kotlin-dist}/kotlin-compiler-client-embeddable-sources.jar
- jar
- sources
-
-
+
+ ${basedir}/../../../compiler/cli/cli-common/src
+ ${basedir}/../../../compiler/daemon/daemon-common/src
+ ${basedir}/../../../compiler/daemon/daemon-client/src
+
@@ -55,6 +53,7 @@
+
org.apache.maven.plugins
maven-antrun-plugin
diff --git a/libraries/tools/kotlin-daemon-client/pom.xml b/libraries/tools/kotlin-daemon-client/pom.xml
index e57d95f4785..ba0158bd063 100644
--- a/libraries/tools/kotlin-daemon-client/pom.xml
+++ b/libraries/tools/kotlin-daemon-client/pom.xml
@@ -30,19 +30,16 @@
1.7
- attach-artifacts
- compile
+ add-sources
+ prepare-package
- attach-artifact
+ add-source
-
-
- ${kotlin-dist}/kotlin-daemon-client-sources.jar
- jar
- sources
-
-
+
+ ${basedir}/../../../compiler/daemon/daemon-common/src
+ ${basedir}/../../../compiler/daemon/daemon-client/src
+