I have a multi-module plugin project where one plugin project depends on the other.
Let's simplify the scenario:
muti-plugin is the root gradle project. it has two subproject, plugin-base and plugin-ext. the project plugin-base export some extention point, and when published, it contain four jars in the final zip.
issue one: dependency transitive lost in coding phase
In the coding phase, the jars batik-all-1.17.jar, xml-apis-ext-1.3.04.jar, xmlgraphics-commons-2.9.jar should be visible in project plugin-ext, but in the version from 2.0.0-beta3 to 2.0.0-bata7, the transitive dependencies jars are lost.
issue two: dependent plugin plugin-base has wrong structure when unzip into sandbox in running phase
When run project plugin-ext by command gradle :plugin-ext:runIde, there should have both plugin plugin-base and plugin plugin-ext deployed into sandbox in correct structure like:
in this way, the jars batik-all-1.17.jar, xml-apis-ext-1.3.04.jar, xmlgraphics-commons-2.9.jar are trade as single jar idea plugin, but it is not. and the plugin-base-1.0-SNAPSHOT-instrumented.jar has plugin.xml in it, looks like a single jar idea plugin, but it missing dependent jars. this is totally wrong.
Relevant log output or stack trace
No response
Steps to reproduce
I attached the muti-plugin demo project code for demonstrate both of thease bugs.
muti-plugin.zip
What happened?
I have a multi-module plugin project where one plugin project depends on the other. Let's simplify the scenario:
muti-plugin
is the root gradle project. it has two subproject,plugin-base
andplugin-ext
. the projectplugin-base
export someextention point
, and when published, it contain four jars in the final zip.the project
plugin-ext
depends onplugin-base
, and make use theextention point
, when published, it contain one jar in the final zip.configuration in build.gradle.kts
plugin-base/build.gradle.kts
plugin-ext/build.gradle.kts
issue one: dependency transitive lost in coding phase
In the coding phase, the jars
batik-all-1.17.jar
,xml-apis-ext-1.3.04.jar
,xmlgraphics-commons-2.9.jar
should be visible in projectplugin-ext
, but in the version from2.0.0-beta3
to2.0.0-bata7
, the transitive dependencies jars are lost.issue two: dependent plugin
plugin-base
has wrong structure when unzip intosandbox
in running phaseWhen run project
plugin-ext
by commandgradle :plugin-ext:runIde
, there should have both pluginplugin-base
and pluginplugin-ext
deployed intosandbox
in correct structure like:but in the version from
2.0.0-beta3
to2.0.0-bata7
, theplugin-base
deployed in wrong structure, by put four jars direct underplugins
directory:in this way, the jars
batik-all-1.17.jar
,xml-apis-ext-1.3.04.jar
,xmlgraphics-commons-2.9.jar
are trade as single jar idea plugin, but it is not. and theplugin-base-1.0-SNAPSHOT-instrumented.jar
hasplugin.xml
in it, looks like a single jar idea plugin, but it missing dependent jars. this is totally wrong.Relevant log output or stack trace
No response
Steps to reproduce
I attached the
muti-plugin
demo project code for demonstrate both of thease bugs. muti-plugin.zipGradle IntelliJ Plugin version
2.0.0-beta7
Gradle version
8.6
Operating System
None
Link to build, i.e. failing GitHub Action job
No response