Skip to content

Commit 6c06773

Browse files
committed
ALT-10993 261.EAP-SNAPSHOT build
1 parent ebaacd9 commit 6c06773

48 files changed

Lines changed: 1088 additions & 70 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
environmentName:
1818
- 252
1919
- 253
20+
- 261
2021
fail-fast: false
2122
steps:
2223
- name: Checkout code

buildSrc/src/main/kotlin/intellij-plugin-module-conventions.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import org.gradle.jvm.tasks.Jar
2-
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
32
import org.jetbrains.intellij.platform.gradle.extensions.intellijPlatform
43

54
plugins {
@@ -66,6 +65,6 @@ dependencies {
6665

6766
intellijPlatform {
6867
testIntellijPlugins(commonTestPlugins)
69-
testFramework(TestFrameworkType.Bundled)
68+
testIntellijPlatformFramework(project)
7069
}
7170
}

buildSrc/src/main/kotlin/intellijUtils.kt

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import org.gradle.api.Project
22
import org.gradle.process.JavaForkOptions
33
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
4+
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
45
import org.jetbrains.intellij.platform.gradle.extensions.IntelliJPlatformDependenciesExtension
56
import kotlin.reflect.KProperty
67

@@ -14,7 +15,7 @@ private const val IDE_RIDER = "rider"
1415
val Project.environmentName: String by Properties
1516

1617
val Project.pluginVersion: String by Properties
17-
val Project.platformVersion: String get() = "20${StringBuilder(environmentName).insert(environmentName.length - 1, '.')}"
18+
val Project.platformVersion: String get() = "20${StringBuilder(environmentName).insert(2, '.')}"
1819
val Project.baseIDE: String by Properties
1920

2021
val Project.ideaVersion: String by Properties
@@ -78,7 +79,7 @@ val Project.jvmPlugins: List<String>
7879
get() = listOf(
7980
javaPlugin,
8081
"JUnit",
81-
"org.jetbrains.plugins.gradle"
82+
"com.intellij.gradle",
8283
)
8384

8485
val Project.javaScriptPlugins: List<String>
@@ -94,7 +95,11 @@ val Project.rustPlugins: List<String>
9495
)
9596

9697
val Project.cppPlugins: List<String>
97-
get() = listOf(
98+
get() = listOfNotNull(
99+
baseVersion.toTypeWithVersion()
100+
.version
101+
.takeUnless { /* TODO remove with 252 */ it.startsWith("2025.2") }
102+
?.let { "com.intellij.cmake" },
98103
"com.intellij.cidr.lang",
99104
"com.intellij.clion",
100105
"com.intellij.nativeDebug",
@@ -134,7 +139,10 @@ fun IntelliJPlatformDependenciesExtension.intellijIde(versionWithCode: String) {
134139
// Starting from 2025.3, IntelliJ IDEA Community and Ultimate are unified into a single distribution.
135140
// Use the new intellijIdea() helper which resolves the unified artifact.
136141
// 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")) {
142+
if (type == IntelliJPlatformType.IntellijIdeaUltimate
143+
&& !version.startsWith("2025.2") /* TODO remove with 252 */
144+
&& !version.startsWith("252")
145+
) {
138146
intellijIdea(version) {
139147
useInstaller.set(false)
140148
useCache.set(true)
@@ -177,6 +185,13 @@ fun IntelliJPlatformDependenciesExtension.testIntellijPlugins(notations: List<St
177185
testIntellijPlugins(*notations.toTypedArray())
178186
}
179187

188+
fun IntelliJPlatformDependenciesExtension.testIntellijPlatformFramework(
189+
project: Project,
190+
frameworkType: TestFrameworkType = TestFrameworkType.Platform,
191+
) {
192+
testFramework(frameworkType, project.baseVersion.toTypeWithVersion().version)
193+
}
194+
180195
// Since 2024.1 CLion has two sets of incompatible plugins: based on classic language engine and new one (AKA Radler).
181196
// Platform uses `idea.suppressed.plugins.set.selector` system property to choose which plugins should be disabled.
182197
// But there aren't `idea.suppressed.plugins.set.selector`, `idea.suppressed.plugins.set.classic`

gradle-261.properties

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
customSinceBuild=261
2+
customUntilBuild=261.*
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-261.21849-EAP-CANDIDATE-SNAPSHOT
8+
clionVersion=CL-261.21849-EAP-CANDIDATE-SNAPSHOT
9+
pycharmVersion=PC-261.21849-EAP-CANDIDATE-SNAPSHOT
10+
riderVersion=RD-2026.1-SNAPSHOT

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# supported values: 252, 253
2-
environmentName=253
1+
# supported values: 252, 253, 261
2+
environmentName=261
33

4-
pluginVersion=2026.6
4+
pluginVersion=2026.7
55

66
# type of IDE (IDEA, CLion, etc.) used to build/test running
77
# for more details see `Different IDEs` section in `PlatformVersions.md`

gradle/libs.versions.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
educational-ml-library = "1.0.65"
33
jackson = "2.17.2"
4-
kotlin = "2.2.0"
4+
kotlin = "2.3.0"
55
okhttp = "4.12.0"
66
retrofit = "2.9.0"
77

@@ -29,6 +29,7 @@ kotlin-test-junit = { group = "org.jetbrains.kotlin", name = "kotlin-test-junit"
2929
mockk = { group = "io.mockk", name = "mockk", version = "1.13.13" }
3030
mockwebserver = { group = "com.squareup.okhttp3", name = "mockwebserver", version.ref = "okhttp" }
3131
openTest4J = { group = "org.opentest4j", name = "opentest4j", version = "1.3.0" }
32+
hamcrest = { group = "org.hamcrest", name = "hamcrest", version="2.2" }
3233

3334
[plugins]
3435
intelliJPlatformPlugin = { id = "org.jetbrains.intellij.platform", version = "2.10.5" }

intellij-plugin/branches/252/resources/plugin_platform.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.

intellij-plugin/branches/253/resources/plugin_platform.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.

intellij-plugin/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
22
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType.*
3-
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
43
import org.jetbrains.intellij.platform.gradle.extensions.IntelliJPlatformTestingExtension
54
import org.jetbrains.intellij.platform.gradle.tasks.PrepareSandboxTask
65
import org.jetbrains.intellij.platform.gradle.tasks.RunIdeTask
@@ -94,7 +93,7 @@ dependencies {
9493
// hs-remote-env is excluded - doesn't compile with 2025.2+
9594
pluginModule(implementation(project("hs-localization")))
9695

97-
testFramework(TestFrameworkType.Bundled)
96+
testIntellijPlatformFramework(project)
9897
testIntellijPlugins(commonTestPlugins)
9998
}
10099

intellij-plugin/hs-CSharp/branches/252/src/com/jetbrains/edu/csharp/compatibilityUtils.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import com.jetbrains.rider.projectView.SolutionDescriptionFactory
99
internal fun createExistingSolutionDescription(solutionPath: String) =
1010
SolutionDescriptionFactory.existing(solutionPath)
1111

12+
internal fun String.asRdPath(): String = this
13+
1214
/**
1315
* Helper class to hold test result data across platform versions.
1416
* In 252, this data comes from RdUnitTestResultData.

0 commit comments

Comments
 (0)