File tree Expand file tree Collapse file tree 3 files changed +28
-5
lines changed
Expand file tree Collapse file tree 3 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 1- import org.gradle.api.JavaVersion.VERSION_17
1+ import org.gradle.api.JavaVersion.VERSION_21
22import org.jetbrains.kotlin.gradle.dsl.JvmTarget
33import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
44import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
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
2930kotlin {
@@ -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
Original file line number Diff line number Diff line change @@ -131,7 +131,18 @@ fun String.toTypeWithVersion(): TypeWithVersion {
131131
132132fun 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}
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments