JetBrains / intellij-platform-gradle-plugin

Gradle plugin for building plugins for IntelliJ-based IDEs
https://plugins.jetbrains.com/docs/intellij/gradle-prerequisites.html
Apache License 2.0
1.43k stars 271 forks source link

Database plugin is not loaded properly #1791

Open Undin opened 2 days ago

Undin commented 2 days ago

What happened?

When I add Database plugin (com.intellij.database) as a dependency, I expect that intellij-platform plugin will load all necessary required dependencies automatically in test to load the plugin. But in case of database plugin, it doesn't work out of the box. I have to manually add dependency on intellij.charts plugin to make it work. May it somehow relate to several dependencies blocks in plugin.xml of database plugin?

Relevant log output or stack trace

No response

Steps to reproduce

To ensure that intellij.charts helps here, you may use https://github.com/Undin/intellij-platform-gradle-plugins-bugs/commit/e2e8c885d12a852e7e93bf070064c557472495f1 commit

Gradle IntelliJ Plugin version

2.1.0

Gradle version

8.7

Operating System

macOS

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

No response

AlexanderBartash commented 1 day ago

That is how it should already work I believe. Are you sure that the database plugin depends on intellij.charts? I can not find it, which jar & file are you looking at?

Undin commented 19 hours ago

That is how it should already work I believe. Are you sure that the database plugin depends on intellij.charts? I can not find it, which jar & file are you looking at?

Probably you cannot find it because intellij.charts is a transitive dependency. com.intellij.database has dependency on intellij.grid.impl, and intellij.grid.impl has dependency on intellij.charts