Gradle plugin 2.2.1 complains about missing YAML plugin

Tool Version
Gradle 8.12.1
IntelliJ Platform Gradle Plugin 2.2.1

Does this ring any bells? I think it was mentionned on slack, but history probably erased the discussions there.

We don’t have YAML plugin dependencies and this issue prevents to bump us to 2.2.1 (we are currently stuck to 2.1.0 due to this issue).
The following stacktrace is on 251 EAP 4, but this happens on 241 as well.

com.intellij.diagnostic.PluginException: Package is not specified (module=PluginDescriptor(name=YAML, id=org.jetbrains.plugins.yaml, moduleName=intellij.yaml.editing, descriptorPath=intellij.yaml.editing.xml, path=~/.gradle/caches/8.12.1/transforms/098e3813bba5c1e279edf4f8f74a4ed2/transformed/ideaIC-251.20015.29-EAP-SNAPSHOT/plugins/yaml/lib/yaml.jar, version=251.20015.29, package=null, isBundled=true))
java.util.concurrent.ExecutionException: com.intellij.diagnostic.PluginException: Package is not specified (module=PluginDescriptor(name=YAML, id=org.jetbrains.plugins.yaml, moduleName=intellij.yaml.editing, descriptorPath=intellij.yaml.editing.xml, path=~/.gradle/caches/8.12.1/transforms/098e3813bba5c1e279edf4f8f74a4ed2/transformed/ideaIC-251.20015.29-EAP-SNAPSHOT/plugins/yaml/lib/yaml.jar, version=251.20015.29, package=null, isBundled=true))
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096)
	at com.intellij.testFramework.common.TestApplicationKt.loadAppInUnitTestMode(testApplication.kt:163)
	at com.intellij.testFramework.common.TestApplicationKt.loadApp(testApplication.kt:131)
	at com.intellij.testFramework.common.TestApplicationKt.loadApp(testApplication.kt:107)
	at com.intellij.testFramework.common.TestApplicationKt.doInitTestApplication(testApplication.kt:98)
	at com.intellij.testFramework.common.TestApplicationKt.initTestApplication(testApplication.kt:88)
	at com.intellij.testFramework.TestApplicationManager$Companion.getInstance(TestApplicationManager.kt:64)
	at com.intellij.testFramework.TestApplicationManager.getInstance(TestApplicationManager.kt)
	at com.intellij.testFramework.fixtures.impl.LightIdeaTestFixtureImpl.setUp(LightIdeaTestFixtureImpl.java:40)
	at com.intellij.testFramework.fixtures.impl.CodeInsightTestFixtureImpl.lambda$setUp$38(CodeInsightTestFixtureImpl.java:1364)
	at com.intellij.testFramework.EdtTestUtil.lambda$runInEdtAndWait$3(EdtTestUtil.java:80)
	at com.intellij.openapi.application.impl.RwLockHolder.runWriteIntentReadAction(RwLockHolder.kt:70)

Please see

Oh indeed I stumbled on https://youtrack.jetbrains.com/issue/IJPL-177264

That said the suggested can’t work in my case, i.e. I build with 241 and test on a different IDE version, like 251 EAP, and I can’t modify modules of the testing config it seems.

intellijPlatformTesting {
    testIde {
        create("unitTestRegression") {
            type = ...
            version = runPlatformVersion
            useInstaller = runPlatformVersion.contains("EAP")

            // where can be configured the modules ?
            plugins {
                plugins(...)
            }
        }
    }
}