intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

verifyPlugin fails due to multiple plugin descriptors

Open SingingBush opened this issue 2 years ago • 3 comments

intellij-dlanguage is stuck using gradle-intellij-plugin 1.10.1 because newer versions (1.13.3 and 1.14.1) fail to run :verifyPlugin with our project:

[gradle-intellij-plugin :verifyPlugin] Found multiple plugin descriptors 'plugin.xml' from 'DLanguage-1.30.2-SNAPSHOT.jar' and 'plugin.xml' from 'instrumented-DLanguage-1.30.2-SNAPSHOT.jar'

Execution failed for task ':verifyPlugin'.
> Plugin verification failed.

To Reproduce clone the repo and bump plugin to 1.14.1 then run verifyPlugin with the gradle wrapper

SingingBush avatar Jun 21 '23 19:06 SingingBush

please make sure to adapt your plugin according to this https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#multi-module-project

YannCebron avatar Jun 22 '23 13:06 YannCebron

I've tried to update my project dependencies using the instrumentedJar config on the project dependencies but as one of the modules depends on the plugin code of the main code it errors due to circular dependencies. This has always been ok before though.

Circular dependency between the following tasks:
:classes
\--- :compileJava
     +--- :compileKotlin
     |    \--- :instrumentedJar
     |         +--- :classes (*)
     |         +--- :compileJava (*)
     |         +--- :compileKotlin (*)
     |         \--- :instrumentCode
     |              \--- :classes (*)
     \--- :instrumentedJar (*)

SingingBush avatar Jul 30 '23 13:07 SingingBush

~I changed the dependencies section of the sub project that requires the main source to use compileOnly and it seems to be working fine~

https://github.com/intellij-dlanguage/intellij-dlanguage/commit/e6f849a05e071d3810b64fa3a7b37ba0091e32ff

ignore that. Had to revert the commit as it would buildPlugin and verifyPlugin but I was not longer able to run check. Any help with this issue (https://github.com/intellij-dlanguage/intellij-dlanguage/issues/885) would be greatly appreciated

SingingBush avatar Oct 02 '23 17:10 SingingBush

Obsolete, as fixed in https://github.com/intellij-dlanguage/intellij-dlanguage/issues/885

hsz avatar Jul 13 '24 21:07 hsz