Skip to content

Plugin sandbox created by IntelliJPlatformTestingExtension is not correct for localPlugin(org.gradle.api.artifacts.ProjectDependency) #1743

@rli

Description

@rli

What happened?

Similar to #1620,
The sandbox tasks created by IntelliJPlatformTestingExtension do not copy local project plugins correctly

Relevant log output or stack trace

No response

Steps to reproduce

With configuration:

dependencies {
    intellijPlatform {
        intellijIdeaCommunity("2024.2")
        instrumentationTools()

        localPlugin(project(":pluginA"))
        localPlugin(project(":pluginB"))
    }
}

val customRunIde by intellijPlatformTesting.runIde.registering
val customTestIde by intellijPlatformTesting.testIde.registering

Observe that :runIde has the correct plugin layout, but not :customRunIde and :customTestIde

$ ./gradlew :prepareSandbox_customTestIde :prepareSandbox_customRunIde
...
$ ls -ah build/idea-sandbox/**/plugins*

build/idea-sandbox/IC-2024.2/plugins:
drwxr-xr-x   pluginA
drwxr-xr-x   pluginB
drwxr-xr-x   untitled

build/idea-sandbox/IC-2024.2/plugins_customRunIde:
-rw-r--r--   pluginA-base.jar
-rw-r--r--   pluginB-base.jar
drwxr-xr-x   untitled

build/idea-sandbox/IC-2024.2/plugins_customTestIde:
-rw-r--r--   pluginA-base.jar
-rw-r--r--   pluginB-base.jar
drwxr-xr-x   untitled

Gradle IntelliJ Plugin version

2.0.1

Gradle version

8.10

Operating System

None

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions