Skip to content

>= 2.4.0 is not adding transitive dependencies of plugin dependencies #1930

Open
@jansorg

Description

@jansorg

What happened?

I was building against IntelliJ Ultimate 2024.1 with dependency plugin("Pythonid:241.14494.314").

With Gradle plugin 2.1.0 a test using the Python file type is successful.
With >= 2.4.0 the same test fails, the idea.log file of the sandbox only shows that the Python plugin was not loaded but doesn't tell why it's not loaded.

Relevant log output or stack trace

It's a bit weird that the Python plugin is loaded from .../python which is overriding .../python/lib/python.jar (i.e. the plugin directory is overriding it's plugin.jar file)

idea.log:

2025-04-24 15:43:24,483 [    235]   INFO - #c.i.i.p.PluginManager - PluginDescriptor(name=Python, id=Pythonid, descriptorPath=plugin.xml, path=~/self-employment/customers/Qwiet AI/sources/IDEIntegration/jetbrains/test-integration/build/idea-sandbox/IU-2024.1/plugins-test/python, version=241.14494.314, package=PythonId, isBundled=false) overrides PluginDescriptor(name=Python, id=Pythonid, descriptorPath=plugin.xml, path=~/self-employment/customers/Qwiet AI/sources/IDEIntegration/jetbrains/test-integration/build/idea-sandbox/IU-2024.1/plugins-test/python/lib/python.jar, version=241.14494.314, package=PythonId, isBundled=true)

2025-04-24 15:43:24,507 [    259]   INFO - #c.i.i.p.PluginManager - Loaded custom plugins: Go (241.14494.158), Terraform and HCL (241.14494.313), PHP (241.14494.240), Ruby (241.14494.240), Scala (2024.1.25)

Steps to reproduce

I was able to fix this by adding bundledPlugin("org.toml.lang") because it's a dependency of the Python plugin for Ultimate.
2.1.0 seems to have done this automatically.
2.4.0 and later doesn't seem to resolve this. This makes it very difficult to find out why a plugin is not loaded.

Gradle IntelliJ Plugin version

2.5.0

Gradle version

8.12

Operating System

Linux

Link to build, i.e. failing GitHub Action job

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions