intellij-platform-gradle-plugin
intellij-platform-gradle-plugin copied to clipboard
verifyPlugin fails due to multiple plugin descriptors
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
please make sure to adapt your plugin according to this https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#multi-module-project
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 (*)
~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
Obsolete, as fixed in https://github.com/intellij-dlanguage/intellij-dlanguage/issues/885