From 080e0bf9cf1987dee32b3ad55955075161e8d48a Mon Sep 17 00:00:00 2001 From: Christoph Loy Date: Fri, 27 Sep 2024 17:27:11 +0200 Subject: [PATCH] Include sources in kotlin-osgi-bundle With this change, we include the sources of all dependencies of `kotlin-osgi-bundle` in its source bundle. This gives users of this library a better IDE and debugging experience providing documentation and allows users to debug in the stdlib. This implementation works very similarly on how the class files of the dependencies are merged. This also means that currently conflicts are not handled at all. This is probably fine, since there should actually be no duplicates. ^KT-28492 Fixed --- libraries/tools/kotlin-osgi-bundle/pom.xml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/libraries/tools/kotlin-osgi-bundle/pom.xml b/libraries/tools/kotlin-osgi-bundle/pom.xml index ec49ace139233..5359fdfbce4d7 100644 --- a/libraries/tools/kotlin-osgi-bundle/pom.xml +++ b/libraries/tools/kotlin-osgi-bundle/pom.xml @@ -45,6 +45,19 @@ **/MANIFEST.MF + + unpack-sources + generate-sources + + unpack-dependencies + + + sources + compile + ${project.parent.groupId} + ${project.build.directory}/sources + + @@ -86,15 +99,14 @@ - empty-sources-jar + sources-jar package jar - false sources - ${basedir}/sources + ${project.build.directory}/sources