you need to do something like <here> and pass a `l...
# intellij-plugins
b
you need to do something like here and pass a
localPath
for example that's what we do:
Copy code
tasks {
  val runLocalIde by intellijPlatformTesting.runIde.registering {
    // Use a custom IJ/AS installation. Set this property in your local ~/.gradle/gradle.properties file.
    // (for AS, it should be something like '/Applications/Android Studio.app/Contents')
    // See <https://plugins.jetbrains.com/docs/intellij/android-studio.html#configuring-the-plugin-gradle-build-script>
    providers.gradleProperty("apolloIntellijPlugin.ideDir").orNull?.let {
      localPath.set(file(it))
    }
}
k
Thank you! I will try this out
Do you have this path set in your local
~/.gradle/gradle.properties
, or is it in your repo's gradle properties?
Also, would
./gradlew runIde
automatically run AS now?
b
Both should work. And the task name is
runLocalIde
k
Thank you!! running that works 😄 Also, is there any way to force the version of AS it's running on, or is it based on what is on your local machine?
b
Actually, do you have something in here
Copy code
dependencies {
  // IntelliJ Platform dependencies must be declared before the intellijPlatform block - see <https://github.com/JetBrains/intellij-platform-gradle-plugin/issues/1784>
  intellijPlatform {
    ...
? I think runIde will by default start the IDE (including version) you've put there.
but yeah, if you use the
localPath
way then it will run the one that you point to
k
Under intellijPlatform, we have something like that here, but it defaults to running intelliJ
b
I think you can add
androidStudio("version you want")
👀 1
k
Would it be like
androidStudio("Android Studio Ladybug Feature Drop | 2024.2.2 Patch 2")
for example?
Copy code
Android Studio Ladybug Feature Drop | 2024.2.2 Patch 2
Build #AI-242.23726.103.2422.13103373, built on February 21, 2025
Runtime version: 21.0.5+13-b509.30 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.3.1
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 12
Metal Rendering is ON
Registry:
  ide.experimental.ui=true
  i18n.locale=
Non-Bundled Plugins:
  google-java-format (1.25.2.0)
  com.facebook.ktfmt_idea_plugin (1.2.0.54)
  com.slack.intellij.artifactory (0.1.1)
  com.slack.intellij.skate (0.8.0)
b
I think that would be more like
"2024.2.2.15"
... but not 100% sure 😅
the doc for this is here and it refers to the list of versions here
k
Ah okay! Thank you so much!! This was really helpful 🙌
👍 1