Skip to content

Commit be87f5b

Browse files
authored
docs: Add prompt for updating org.jetbrains.intellij.platform plugin version (#8667)
This is follow up on flutter/dart-intellij-third-party#167
1 parent d3023e3 commit be87f5b

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

docs/prompts.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,24 @@
3333
* Push the branch to `origin`.
3434
* (Optional) Reset `main` or switch back to `main` to start the next branch cleanly.
3535
5. **Final Report:** Provide a summary of the branches created and the packages covered.
36+
37+
---
38+
39+
## Prompt 3: Update org.jetbrains.intellij.platform
40+
**Objective:** Update the `org.jetbrains.intellij.platform` plugin version to the latest available.
41+
42+
**Instructions:**
43+
1. **Build the plugin** using `./gradlew buildPlugin` to establish a baseline and check for any existing warnings.
44+
2. **Create a new branch** off of `main` for this update.
45+
3. **Find the new version name and URL**:
46+
* Open `https://plugins.gradle.org/plugin/org.jetbrains.intellij.platform` in Chrome.
47+
* Identify the latest version number.
48+
4. **Make the change**:
49+
* Update the version in `third_party/build.gradle.kts` (look for `id("org.jetbrains.intellij.platform") version "..."`).
50+
5. **Validate**:
51+
* Run `./gradlew buildPlugin` again to ensure the build succeeds.
52+
* Run the tests (`./gradlew test`) to ensure everything is still working.
53+
* **Crucial**: If any tests fail, verify if they are pre-existing failures by running them on the `main` branch (or the version before your changes). Only failures introduced by the update need to be fixed.
54+
6. **Create a PR**:
55+
* Use a commit message like: "Update org.jetbrains.intellij.platform to <VERSION>"
56+
* You can point to https://github.com/flutter/dart-intellij-third-party/pull/167 as an example of a similar PR.

0 commit comments

Comments
 (0)