Skip to content

Custom Test IDE tasks can't resolve all dependencies #1993

@abrooksv

Description

@abrooksv

What happened?

Using a custom test IDE task to run unit tests in a different platform version will fail to resolve some dependencies. It seems to look for the wrong version? (Plugin template is build against 2024.3.1, custom test task defines it as 2025.1)

Relevant log output or stack trace

Configuration cache state could not be cached: field `__intelliJPlatformTestRuntimeFixClasspathConfiguration__` of task `:prepareTest` of type `org.jetbrains.intellij.platform.gradle.tasks.PrepareTestTask`: error writing value of type 'org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection'
> Could not resolve all files for configuration ':intellijPlatformTestRuntimeFixClasspath'.
   > Could not find intellij.smart.update.jar (bundledModule:intellij-platform-test-runtime:IC-243.26574.91).
     Searched in the following locations:
         file:/home/runner/.gradle/caches/8.14.3/transforms/f1355b913fff472626d1e10a0a6fc610/transformed/ideaIC-2025.1/lib/modules/intellij.smart.update.jar
   > Could not find intellij.platform.jewel.markdown.extensions.gfmTables.jar (bundledModule:intellij-platform-test-runtime:IC-243.26574.91).
     Searched in the following locations:
         file:/home/runner/.gradle/caches/8.14.3/transforms/f1355b913fff472626d1e10a0a6fc610/transformed/ideaIC-2025.1/lib/modules/intellij.platform.jewel.markdown.extensions.gfmTables.jar
   > Could not find intellij.platform.jewel.markdown.extensions.gfmStrikethrough.jar (bundledModule:intellij-platform-test-runtime:IC-243.26574.91).
     Searched in the following locations:
         file:/home/runner/.gradle/caches/8.14.3/transforms/f1355b913fff472626d1e10a0a6fc610/transformed/ideaIC-2025.1/lib/modules/intellij.platform.jewel.markdown.extensions.gfmStrikethrough.jar
   > Could not find intellij.platform.jewel.markdown.extensions.gfmAlerts.jar (bundledModule:intellij-platform-test-runtime:IC-243.26574.91).

Steps to reproduce

abrooksv/customTestIde@27d7599

Gradle IntelliJ Plugin version

2.7.0

Gradle version

8.14.3

Operating System

None

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

https://github.com/abrooksv/customTestIde/actions/runs/16632309417/job/47064762577#step:6:25

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions