Cross IDE plugin

Hi.
I’m trying to create cross IDE tool window plugin

I’m using buildgradle

plugins {
    id 'java'
    id 'org.jetbrains.intellij.platform' version '2.9.0'
}

dependencies {
    intellijPlatform {
        intellijIdeaCommunity '2025.2'
        bundledPlugin 'com.intellij.java'
    }
}

java {
    sourceCompatibility = JavaVersion.VERSION_21
    targetCompatibility = JavaVersion.VERSION_21
}

and I’m using some com.intellij.execution extensions to interact with project configuration settings.

by default intellijIdeaCommunity launched IntelliJ
but I’d like to test on Rider

prebiously there was runIde > ideDIr
but with new gradle plugin sdk we have no option like it.

if I change intellijIdeaCommunity to rider, it breaks dependecies to com.intellij.execution

can you suggest me how it could be done?

P.S. I’m using Groovy instead of Kotlin

Thanks!

When I’m trying to do smth like

intellijPlatformTesting.runIde {
    runRider{
        type = IntelliJPlatformType.Rider
    }
}

getting the error
Could not get unknown property 'IntelliJPlatformType' for object of type org.jetbrains.intellij.platform.gradle.extensions.IntelliJPlatformTestingExtension$RunIdeParameters.

It only exists in IntelliJ IDEA, Java plugin is incompatible with other IDEs. Make sure you depend on Java in plugin.xml optionally

2 Likes

I believe you’re missing the import:

import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
1 Like

Thats fixed the issue !

I’m newbie in Java and plugin development, so didn’t know that gradle allows to import packages

Thanks!