Skip to content

Commit 9b42288

Browse files
authored
Pin to Kotlin 2.2 language level so context receivers continue to work (#136)
* Pin to Kotlin 2.2 language level so context receivers continue to work * Pinned to Kotlin 2.3.0 * Update gitignore
1 parent 08ef126 commit 9b42288

File tree

5 files changed

+43
-13
lines changed

5 files changed

+43
-13
lines changed

.github/workflows/module-tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,16 @@ jobs:
148148
- name: Grant execute permission for gradlew
149149
run: chmod +x gradlew
150150

151-
- name: Build stability-runtime (dependency)
152-
run: ./gradlew :stability-runtime:build --no-daemon --stacktrace
151+
- name: Publish stability-runtime to Maven Local
152+
run: ./gradlew :stability-runtime:publishToMavenLocal -x test --no-daemon --stacktrace -PRELEASE_SIGNING_ENABLED=false
153153

154-
- name: Build IDE plugin
155-
run: ./gradlew :compose-stability-analyzer-idea:buildPlugin --no-daemon --stacktrace
154+
- name: Build IDE plugin (standalone with Kotlin 2.3.0)
155+
working-directory: compose-stability-analyzer-idea
156+
run: ../gradlew clean buildPlugin --no-daemon --stacktrace
156157

157158
- name: Verify plugin compatibility
158-
run: ./gradlew :compose-stability-analyzer-idea:verifyPlugin --no-daemon --stacktrace
159+
working-directory: compose-stability-analyzer-idea
160+
run: ../gradlew verifyPlugin --no-daemon --stacktrace
159161

160162
- name: Upload verification results
161163
if: always()

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ google-services.json
5858

5959
# Docs
6060
CLAUDE.md
61-
docs/api
61+
docs/api
62+
.hotswan/

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@
1414
* limitations under the License.
1515
*/
1616
plugins {
17-
kotlin("jvm")
17+
// Pinned to Kotlin 2.3.0 — the K2 Analysis API from IntelliJ 2025.2 uses context receivers,
18+
// which are removed in Kotlin 2.3.20. This module is built separately from the main project.
19+
kotlin("jvm") version "2.3.0"
1820
id("org.jetbrains.intellij.platform") version "2.10.1"
19-
id(libs.plugins.spotless.get().pluginId)
21+
id("com.diffplug.spotless") version "6.21.0"
2022
}
2123

2224
kotlin {
2325
explicitApi()
2426
}
2527

26-
group = project.property("GROUP") as String
27-
version = project.property("VERSION_NAME") as String
28+
group = "com.github.skydoves"
29+
version = "0.7.1"
2830

2931
repositories {
32+
mavenLocal()
3033
mavenCentral()
3134

3235
intellijPlatform {
@@ -35,7 +38,7 @@ repositories {
3538
}
3639

3740
dependencies {
38-
implementation(project(":stability-runtime"))
41+
implementation("com.github.skydoves:compose-stability-runtime-jvm:0.7.1")
3942

4043
intellijPlatform {
4144
intellijIdeaCommunity("2025.2")
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
pluginManagement {
2+
repositories {
3+
mavenLocal()
4+
gradlePluginPortal()
5+
google()
6+
mavenCentral()
7+
}
8+
}
9+
10+
dependencyResolutionManagement {
11+
repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
12+
repositories {
13+
mavenLocal()
14+
google()
15+
mavenCentral()
16+
maven { url = uri("https://cache-redirector.jetbrains.com/intellij-dependencies") }
17+
}
18+
}
19+
20+
rootProject.name = "compose-stability-analyzer-idea"

settings.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ include(
2424
":stability-runtime",
2525
":stability-gradle",
2626
":stability-lint",
27-
":compose-stability-analyzer-idea",
2827
":compiler-tests",
2928
":app",
30-
":app-model"
29+
":app-model",
3130
)
31+
32+
// The IDE plugin is excluded from the main build because it requires Kotlin 2.3.0
33+
// (the K2 Analysis API uses context receivers, which are removed in Kotlin 2.3.20).
34+
// Build it separately: ./gradlew -p compose-stability-analyzer-idea buildPlugin
35+
// include(":compose-stability-analyzer-idea")

0 commit comments

Comments
 (0)