Skip to content

Commit a4d7ef7

Browse files
authored
Bump plugin support to 261 and add plugin verifier (#118)
* Bump plugin support to 261 and add plugin verifier * Remove version specifics
1 parent 7802116 commit a4d7ef7

2 files changed

Lines changed: 40 additions & 2 deletions

File tree

.github/workflows/intellij-plugin.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,41 @@ jobs:
7777
name: plugin-test-results
7878
path: compose-stability-analyzer-idea/build/reports/tests/
7979

80+
verify-plugin:
81+
name: Verify Plugin Compatibility
82+
runs-on: ubuntu-latest
83+
needs: build-plugin
84+
steps:
85+
- name: Checkout code
86+
uses: actions/checkout@v4
87+
88+
- name: Set up JDK 21
89+
uses: actions/setup-java@v4
90+
with:
91+
distribution: 'zulu'
92+
java-version: 21
93+
cache: 'gradle'
94+
95+
- name: Grant execute permission for gradlew
96+
run: chmod +x gradlew
97+
98+
- name: Build stability-runtime (dependency)
99+
run: ./gradlew :stability-runtime:build --no-daemon --stacktrace
100+
101+
- name: Verify plugin compatibility
102+
run: ./gradlew :compose-stability-analyzer-idea:verifyPlugin --no-daemon --stacktrace
103+
104+
- name: Upload verification results
105+
if: always()
106+
uses: actions/upload-artifact@v4
107+
with:
108+
name: plugin-verification-results
109+
path: compose-stability-analyzer-idea/build/reports/pluginVerifier/
110+
80111
publish-check:
81112
name: Plugin Publish Check
82113
runs-on: ubuntu-latest
83-
needs: [build-plugin, test-plugin]
114+
needs: [build-plugin, test-plugin, verify-plugin]
84115
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
85116
steps:
86117
- name: Checkout code

compose-stability-analyzer-idea/build.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ intellijPlatform {
5555
pluginConfiguration {
5656
ideaVersion {
5757
sinceBuild = "242"
58-
untilBuild = "253.*"
58+
untilBuild = "261.*"
5959
}
6060

6161
description = """
@@ -172,6 +172,13 @@ intellijPlatform {
172172
ides {
173173
recommended()
174174
}
175+
// Pre-existing K2 API issues (KaSessionProvider.handleAnalysisException) in 242-251
176+
// cause false positives — the plugin gracefully falls back to PSI on older IDEs.
177+
// 261 (2026.1 EAP) uses the unified "idea" artifact which the verifier cannot resolve yet.
178+
failureLevel = listOf(
179+
org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask.FailureLevel.INVALID_PLUGIN,
180+
org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask.FailureLevel.NOT_DYNAMIC,
181+
)
175182
}
176183
}
177184

0 commit comments

Comments
 (0)