Lacking "com.intellij.testFramework" package after migrating to IntelliJ Gradle Plugin 2.x
已回答
Description: After upgrading our IntelliJ plugin from Gradle IntellIj Plugin 1.x to IntelliJ Platform Gradle Plugin version 2.0.1, we have noticed that the classes that are relevant for us (e.g. IdeaProjectTestFixture, LightProjectDescriptor) that were coming from com.intellij.testFramework package are missing. For the context, I've noticed that the library com.jetbrains.ideaIC:2024.2 was replaced in favor of idea:ideaIC:aarch64:2024.2 after platform migration and in there, the com.intellij.testFramework package contains less classes. I would like to ask if that's expected change and if so, is there any recommended approach?
请先登录再写评论。
Hi,
Please share you Gradle build script configuration.
Hi,
This set up successfully resolves the com.jetbrains.ideaIC and the testFramework that we need:
while this one ends up resolving idea:ideaIC which lacks a lot of useful classes
Hi Klaudyna,
Please try adding a testing framework to dependencies.
See: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html#testing
It works! Thank you very much for your support.