Skip to content

Commit 9889ed4

Browse files
meanmailclaude
andcommitted
Add support for IntelliJ Platform 2025.3
- Update JVM target to 21 (required for IntelliJ 2024.2+) - Add unified IntelliJ IDEA distribution support for 2025.3 Starting from 2025.3, Community and Ultimate are merged into one - Configure gradle-253.properties with 2025.3 IDE versions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e5ffe40 commit 9889ed4

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

buildSrc/src/main/kotlin/common-conventions.gradle.kts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import org.gradle.api.JavaVersion.VERSION_17
1+
import org.gradle.api.JavaVersion.VERSION_21
22
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
33
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
44
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@@ -22,8 +22,9 @@ java {
2222
}
2323
}
2424

25-
sourceCompatibility = VERSION_17
26-
targetCompatibility = VERSION_17
25+
// IntelliJ Platform 2024.2+ requires Java 21
26+
sourceCompatibility = VERSION_21
27+
targetCompatibility = VERSION_21
2728
}
2829

2930
kotlin {
@@ -54,7 +55,8 @@ tasks {
5455
}
5556
withType<KotlinCompile> {
5657
compilerOptions {
57-
jvmTarget = JvmTarget.JVM_17
58+
// IntelliJ Platform 2024.2+ requires Java 21
59+
jvmTarget = JvmTarget.JVM_21
5860
languageVersion = KotlinVersion.DEFAULT
5961
// see https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library
6062
apiVersion = KotlinVersion.KOTLIN_1_8

buildSrc/src/main/kotlin/intellijUtils.kt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,18 @@ fun String.toTypeWithVersion(): TypeWithVersion {
131131

132132
fun IntelliJPlatformDependenciesExtension.intellijIde(versionWithCode: String) {
133133
val (type, version) = versionWithCode.toTypeWithVersion()
134-
create(type, version, useInstaller = false)
134+
// Starting from 2025.3, IntelliJ IDEA Community and Ultimate are unified into a single distribution.
135+
// Use the new intellijIdea() helper which resolves the unified artifact.
136+
// See: https://blog.jetbrains.com/platform/2025/11/intellij-platform-2025-3-what-plugin-developers-should-know/
137+
if (type == IntelliJPlatformType.IntellijIdeaUltimate && version.startsWith("2025.3")) {
138+
intellijIdea(version) {
139+
useInstaller.set(false)
140+
}
141+
} else {
142+
create(type, version) {
143+
useInstaller.set(false)
144+
}
145+
}
135146
// JetBrains runtime is necessary not only for running IDE but for tests as well
136147
jetbrainsRuntime()
137148
}

gradle-253.properties

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
customSinceBuild=253
2+
customUntilBuild=253.*
3+
4+
# Existent IDE versions can be found in the following repos:
5+
# https://www.jetbrains.com/intellij-repository/releases/
6+
# https://www.jetbrains.com/intellij-repository/snapshots/
7+
ideaVersion=IU-2025.3
8+
clionVersion=CL-2025.3
9+
pycharmVersion=PC-2025.3
10+
riderVersion=RD-2025.3

0 commit comments

Comments
 (0)