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

PluginVerification: "No IntelliJ Platform dependency found" when upgrading to 2.1.0

Open etienne02 opened this issue 4 months ago • 2 comments

What happened?

When dependabot tried to upgrade the plugin to 2.1.0 the cicd failed with error No IntelliJ Platform dependency found After investigation, I found that this is caused by the dependencies block being declared after the intellijPlatform block. If I move the dependencies block before the intellijPlatform one, the error disapear.

Note that for plugin version 2.0.x, the current setup properly works.

I would like to be able to upgrade without having to change the order, to keep things like it is currently (and if it’s not possible, please document that blocks order is important).

Relevant log output or stack trace

No response

Steps to reproduce

Take a plugin, enable plugin verification with ides { recommended() }, put the dependencies block with the IDE platform selection (type and version) after the intellijPlatform block.

Gradle IntelliJ Plugin version

2.1.0

Gradle version

8.10

Operating System

Linux

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

https://github.com/intellij-dlanguage/intellij-dlanguage/actions/runs/11050808276/job/30699362994?pr=1017

etienne02 avatar Oct 03 '24 12:10 etienne02