Skip to content

Commit d65c983

Browse files
committed
Upgrade to IntelliJ Platform 2026.2
1 parent 1496e28 commit d65c983

14 files changed

Lines changed: 114 additions & 42 deletions

.github/workflows/gradle.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919

20-
- name: Set up JDK 21
21-
uses: actions/setup-java@v4
20+
- name: Set up JDK 25
21+
uses: actions/setup-java@v5
2222
with:
23-
java-version: '21'
24-
distribution: 'adopt'
23+
java-version: '25'
24+
distribution: 'temurin'
2525

2626
# Cache Gradle dependencies
2727
- name: Setup Gradle Dependencies Cache
@@ -48,4 +48,4 @@ jobs:
4848
# env:
4949
# ORG_GRADLE_PROJECT_platformPlugins: "java,webDeployment,com.jetbrains.php:223.8617.59,de.espend.idea.php.toolbox:6.1.0"
5050
# ORG_GRADLE_PROJECT_platformVersion: "2022.3.2"
51-
# run: ./gradlew check verifyPlugin buildPlugin
51+
# run: ./gradlew check verifyPlugin buildPlugin

build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ fun properties(key: String) = project.findProperty(key).toString()
55

66
plugins {
77
id("java")
8-
id("org.jetbrains.kotlin.jvm") version "2.3.20"
9-
id("org.jetbrains.intellij.platform") version "2.14.0"
8+
id("org.jetbrains.intellij.platform") version "2.18.1"
109
id("org.jetbrains.changelog") version "2.5.0"
10+
kotlin("jvm")
1111
}
1212

1313
group = properties("pluginGroup")
@@ -95,7 +95,6 @@ tasks {
9595
patchPluginXml {
9696
version = properties("pluginVersion")
9797
sinceBuild.set(properties("pluginSinceBuild"))
98-
untilBuild.set(properties("pluginUntilBuild"))
9998
changeNotes.set(file("src/main/resources/META-INF/change-notes.html").readText().replace("<html>", "").replace("</html>", ""))
10099
}
101100

@@ -116,3 +115,7 @@ tasks {
116115
}
117116
}
118117
}
118+
119+
kotlin {
120+
jvmToolchain(25)
121+
}

gradle.properties

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,21 @@ pluginVersion = 12.1.0
99

1010
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1111
# for insight into build numbers and IntelliJ Platform versions.
12-
pluginSinceBuild = 252
13-
pluginUntilBuild = 299.*
12+
pluginSinceBuild = 262
1413

1514
# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
1615
platformType = IU
17-
platformVersion = 2026.1
16+
platformVersion = 2026.2
1817

1918
# Java language level used to compile sources and to generate the files for
20-
javaVersion = 21
19+
javaVersion = 25
2120

2221
# Gradle Releases -> https://github.com/gradle/gradle/releases
23-
gradleVersion = 9.4.1
22+
gradleVersion = 9.6.1
2423

2524
# Opt-out flag for bundling Kotlin standard library.
2625
# See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details.
2726
# suppress inspection "UnusedProperty"
2827
kotlin.stdlib.default.dependency = false
2928

30-
org.gradle.configuration-cache=true
29+
org.gradle.configuration-cache=true

gradle/wrapper/gradle-wrapper.jar

-504 Bytes
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
44
networkTimeout=10000
5+
retries=0
6+
retryBackOffMs=500
57
validateDistributionUrl=true
68
zipStoreBase=GRADLE_USER_HOME
79
zipStorePath=wrapper/dists

gradlew

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 12 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1+
pluginManagement {
2+
plugins {
3+
kotlin("jvm") version "2.4.10"
4+
}
5+
}
6+
7+
plugins {
8+
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
9+
}
10+
111
rootProject.name = "PHP Annotations"

src/test/java/de/espend/idea/php/annotation/tests/AnnotationLightCodeInsightFixtureTestCase.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@
5050
*/
5151
public abstract class AnnotationLightCodeInsightFixtureTestCase extends LightJavaCodeInsightFixtureTestCase {
5252

53+
// These external inspections are incompatible with the legacy light-test traversal below.
54+
private static final Set<String> UNSUPPORTED_LIGHT_TEST_INSPECTIONS = Set.of(
55+
"com.intellij.clouds.docker.gateway.json.inspections.DevcontainerFolderInspection",
56+
"com.intellij.lang.javascript.inspections.JSInspection",
57+
"org.editorconfig.language.codeinsight.inspections.EditorConfigVerifyByCoreInspection",
58+
"org.jetbrains.qodana.staticAnalysis.inspections.sanity.QodanaSanity"
59+
);
60+
5361
@Override
5462
public void setUp() throws Exception {
5563
super.setUp();
@@ -496,6 +504,21 @@ private Pair<List<ProblemDescriptor>, Integer> getLocalInspectionsAtCaret(@NotNu
496504
continue;
497505
}
498506

507+
Class<?> inspectionClass = object.getClass();
508+
boolean unsupportedInspection = false;
509+
while(inspectionClass != null) {
510+
if(UNSUPPORTED_LIGHT_TEST_INSPECTIONS.contains(inspectionClass.getName())) {
511+
unsupportedInspection = true;
512+
break;
513+
}
514+
515+
inspectionClass = inspectionClass.getSuperclass();
516+
}
517+
518+
if(unsupportedInspection) {
519+
continue;
520+
}
521+
499522
final PsiElementVisitor psiElementVisitor = ((LocalInspectionTool) object).buildVisitor(problemsHolder, false);
500523

501524
psiFile.acceptChildren(new PsiRecursiveElementVisitor() {

src/test/java/de/espend/idea/php/annotation/tests/doctrine/action/DoctrineClassOrmAnnotationGenerateActionTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ public String getTestDataPath() {
2020

2121
public void testThatThatEntityClassIsGeneratedForAnnotations() {
2222
myFixture.configureByText(PhpFileType.INSTANCE, "<?php\n" +
23+
"\n" +
24+
"/**\n" +
25+
" * @\\Doctrine\\ORM\\Mapping\\Entity\n" +
26+
" */\n" +
27+
"class Existing {}\n" +
2328
"\n" +
2429
"class Foobar\n" +
2530
"{\n" +
@@ -34,6 +39,11 @@ public void testThatThatEntityClassIsGeneratedForAnnotations() {
3439
"use Doctrine\\ORM\\Mapping as ORM;\n" +
3540
"\n" +
3641
"/**\n" +
42+
" * @\\Doctrine\\ORM\\Mapping\\Entity\n" +
43+
" */\n" +
44+
"class Existing {}\n" +
45+
"\n" +
46+
"/**\n" +
3747
" * @ORM\\Entity\n" +
3848
" * @ORM\\Table(name=\"foobar\")\n" +
3949
" */\n" +

0 commit comments

Comments
 (0)