-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dependency transitive issue in coding phase and running phase #1657
Comments
@Vanco thank you for a brilliant description and reproducible project. |
Ok, Thanks. I will test and verify it today. |
BTW, the issue two was fixed. |
1 similar comment
BTW, the issue two was fixed. |
Thank you for the further explanations!
dependencies {
intellijPlatform {
localPlugin(project(":plugin-base"))
}
} it loads the base module correctly, but without its transitive dependencies — this is because
All this happens when you declare a dependency on a
|
Oh, I see. In the case of my current project, I just changed the |
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.zip
Gradle 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
The text was updated successfully, but these errors were encountered: