Cannot use local IDE installation for testing IntelliJ IDEA plugin under Windows
When I set the platform dependency to a local installation of either IntelliJ IDEA or Android Studio, imports from e.g. ‘com.intellij’ cannot be resolved anymore. I am sure I picked the correct paths because otherwise I get this error on Gradle reload:
“java.lang.IllegalArgumentException: Cannot resolve 'product-info.json' with: 'C:\Users\[…]”
This is my build.gradle.kts, am I doing something wrong? I somehow find it hard to find good documentation on this process.plugins { id("java") id("org.jetbrains.kotlin.jvm") version "1.9.25" id("org.jetbrains.intellij.platform") version "2.2.0"}group = "com.opappdevs"version = "1.0.0"repositories { mavenCentral() intellijPlatform { defaultRepositories() }}dependencies { intellijPlatform { // most recent IC release //intellijIdeaCommunity("2024.3.1.1") // most recent AI release, corresponding IC release //intellijIdeaCommunity("2024.2.3") //androidStudio("2024.2.1.12") // oldest supported IC version, corresponding AI release //intellijIdeaCommunity("2022.3") //androidStudio("2022.3.1.18") // local versions - NOT WORKING //local("C:/Users/ole/AppData/Local/Programs/Android Studio") local("C:/Users/ole/AppData/Local/Programs/IntelliJ IDEA Community Edition") } testImplementation(kotlin("test"))}tasks { // JVM compatibility versions withType<JavaCompile> { sourceCompatibility = "17" targetCompatibility = "17" } withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { kotlinOptions.jvmTarget = "17" } patchPluginXml { sinceBuild.set("223") untilBuild.set("243.*") } signPlugin { certificateChain.set(System.getenv("CERTIFICATE_CHAIN")) privateKey.set(System.getenv("PRIVATE_KEY")) password.set(System.getenv("PRIVATE_KEY_PASSWORD")) } publishPlugin { token.set(System.getenv("PUBLISH_TOKEN")) }}
Please sign in to leave a comment.
Fixed in IntelliJ Platform Gradle Plugin version 2.2.1.
Reported in case this was an overlooked regression (saw a similar issue come up previously).
Issue can be closed.