intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

Support for running other IDEs via the Running DSL

Open breandan opened this issue 5 years ago • 3 comments

As requested here, it would be nice if it were possible to run other IDEs configured in the Setup DSL via the Running DSL.

breandan avatar Jan 25 '19 14:01 breandan

I guess this works now? I am on 0.4.5 and :runIde task now starts CLion as expected. Does it work for other IDEs?

breandan avatar Mar 23 '19 05:03 breandan

I don't think so. You still have to change intellij.version to run CLion or IDEA. Other IDEs are not support at all.

zolotov avatar Mar 25 '19 11:03 zolotov

Right, as long as the property is set it launches CL or IU. Still, It’s a nice improvement.

breandan avatar Mar 25 '19 11:03 breandan

This is now possible with IntelliJ Platform Gradle Plugin 2.0:

import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import org.jetbrains.intellij.platform.gradle.tasks.RunIdeTask

tasks {
  val runPhpStorm by registering(RunIdeTask::class) {
    type = IntelliJPlatformType.PhpStorm
    version = "2023.2.2"
  }

  val runLocalIde by registering(RunIdeTask::class) {
    localPath = file("/Users/hsz/Applications/Android Studio.app")
  }
}

See: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-tasks.html#runIde

hsz avatar Mar 28 '24 22:03 hsz