[infra] add runTarget#317
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request externalizes the IntelliJ IDEA version to gradle.properties and introduces a new runTarget task to facilitate launching various IDE types (Community, Ultimate, Android Studio) or local installations via command-line properties. The printProductsReleases task was also enhanced to support more channels and types. Feedback includes suggestions to document the hardcoded fallback version, reduce property fetching duplication, and replace println calls with the idiomatic Gradle logger.lifecycle to comply with the project's logging standards.
helin24
approved these changes
Apr 17, 2026
cj-radcliff
pushed a commit
that referenced
this pull request
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a parameterized
runTargetGradle task letting us run and test the plugin against multiple IDE targets (IntelliJ IDEA Community, Ultimate, and Android Studio) without changing the primary compilation classpath.This is modeled after the approach taken in
flutter-intellijPR #8910 with a few tweaks.Key Bits
gradle.propertiesasideaVersion.runTargetTask: Registered a customrunTargettask using theintellijPlatformTestingextension that accepts-Pideand-PideVparameters../gradlew runTargetwithout parameters displays usage instructions and stops execution.printProductsReleases: Updates the task to include Android Studio releases and provided instructions for mapping the output to task parameters.Differences from
flutter-intellij/pull/8910"2024.2"instead of the project's compilation target"2025.3.1.1". This avoids resolution errors caused by JetBrains changing the publication structure for Community editions starting with version 2025.3. (Note this is just for printing the help docs and not for actually running anything.)-PidePath): We added a new parameter-PidePathto allow running against a local IDE installation (e.g.,./gradlew runTarget -PidePath=/Applications/Android\ Studio.app). This was added to bypass brittle automated resolution issues specifically associated with Android Studio releases in the new Gradle plugin.Fixes: #316
Contribution guidelines:
dart format.