Skip to content

Commit 3556531

Browse files
authored
Upgrade to platform 213 (#359)
1 parent 0ba910e commit 3556531

File tree

10 files changed

+73
-23
lines changed

10 files changed

+73
-23
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ jobs:
4444
grammar_kit_plugin_version: "2021.1.3"
4545
since_build: "212"
4646
until_build: "212.*"
47+
- idea_version: "IU-213.5744.202-EAP-SNAPSHOT"
48+
java_version: "11"
49+
php_plugin_version: "213.5744.206"
50+
psi_viewer_plugin_version: "213-SNAPSHOT"
51+
grammar_kit_plugin_version: "2021.1.3"
52+
since_build: "213"
53+
until_build: "213.*"
4754

4855
steps:
4956

@@ -102,6 +109,13 @@ jobs:
102109
grammar_kit_plugin_version: "2021.1.3"
103110
since_build: "212"
104111
until_build: "212.*"
112+
- idea_version: "IU-213.5744.202-EAP-SNAPSHOT"
113+
java_version: "11"
114+
php_plugin_version: "213.5744.206"
115+
psi_viewer_plugin_version: "213-SNAPSHOT"
116+
grammar_kit_plugin_version: "2021.1.3"
117+
since_build: "213"
118+
until_build: "213.*"
105119

106120
outputs:
107121
cms-name: ${{ steps.properties.outputs.cms-name }}
@@ -295,6 +309,7 @@ jobs:
295309
matrix:
296310
include:
297311
- since_build: "212"
312+
- since_build: "213"
298313

299314
steps:
300315

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ jobs:
3131
grammar_kit_plugin_version: "2021.1.3"
3232
since_build: "212"
3333
until_build: "212.*"
34+
- idea_version: "IU-213.5744.202-EAP-SNAPSHOT"
35+
java_version: "11"
36+
php_plugin_version: "213.5744.206"
37+
psi_viewer_plugin_version: "213-SNAPSHOT"
38+
grammar_kit_plugin_version: "2021.1.3"
39+
since_build: "213"
40+
until_build: "213.*"
3441
outputs:
3542
prefixed-version: ${{ steps.properties.outputs.prefixed-version }}
3643

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44
### Added
5-
5+
- Upgrade to platform 213
66
### Changed
77
- migrate checkHighlight to testHighlight where possible
88
- migrate away from using FileTypeIndex.NAME directly

build.gradle

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
22

33
plugins {
4-
id "org.jetbrains.intellij" version "1.1.6" apply false
4+
id "org.jetbrains.intellij" version "1.3.0" apply false
5+
id 'java'
56
id "org.jetbrains.grammarkit" version "${grammarKitPluginVersion}" apply false
67
id 'org.jetbrains.changelog' version '1.1.1'
78
}
89

910
repositories {
1011
mavenCentral()
11-
jcenter()
1212
}
1313

1414
def htmlFixer = { htmlFile -> file(htmlFile).text.replace('<html>', '').replace('</html>', '') }
1515

1616
group pluginGroup
1717

1818
allprojects {
19+
repositories {
20+
mavenCentral()
21+
}
22+
1923
apply plugin: 'java'
2024
apply plugin: 'org.jetbrains.changelog'
2125

@@ -24,6 +28,11 @@ allprojects {
2428
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
2529

2630
version = pluginVersion
31+
32+
test {
33+
scanForTestClasses false
34+
include "**/*Test.class"
35+
}
2736
}
2837

2938
subprojects {
@@ -32,12 +41,6 @@ subprojects {
3241
apply plugin: 'java'
3342
apply plugin: 'org.jetbrains.grammarkit'
3443

35-
repositories {
36-
mavenCentral()
37-
jcenter()
38-
maven { url 'https://jitpack.io' }
39-
}
40-
4144
changelog {
4245
version = pluginVersion
4346
path = "${project.rootProject.projectDir}/CHANGELOG.md"
@@ -73,6 +76,7 @@ subprojects {
7376

7477
grammarKit {
7578
jflexRelease = jFlexRelease
79+
grammarKitRelease = grammarKitVersion
7680
}
7781

7882
runPluginVerifier {
@@ -83,7 +87,7 @@ subprojects {
8387
}
8488

8589
wrapper {
86-
gradleVersion '7.2'
90+
gradleVersion '7.3'
8791
}
8892

8993
test.testLogging.exceptionFormat = TestExceptionFormat.FULL

gradle.properties

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,22 @@ javaTargetVersion = 1.11
1010

1111
jFlexRelease = 1.7.0-1
1212

13-
pluginVerifierIdeVersions = 2021.2
13+
pluginVerifierIdeVersions = 2021.2,2021.3
1414

1515
grammarKitPluginVersion = 2021.1.3
16-
ideaVersion = IU-2021.2.2
17-
phpPluginVersion = 212.5284.49
18-
psiViewerPluginVersion = 212-SNAPSHOT
19-
customSinceBuild=212
20-
customUntilBuild=212.*
16+
grammarKitVersion = 2021.1.2
17+
ideaVersion = IU-213.5744.202-EAP-SNAPSHOT
18+
phpPluginVersion = 213.5744.206
19+
psiViewerPluginVersion = 213-SNAPSHOT
20+
customSinceBuild=213
21+
customUntilBuild=213.*
22+
23+
#grammarKitPluginVersion = 2021.1.3
24+
#ideaVersion = IU-2021.2.2
25+
#phpPluginVersion = 212.5284.49
26+
#psiViewerPluginVersion = 212-SNAPSHOT
27+
#customSinceBuild=212
28+
#customUntilBuild=212.*
2129

2230
#grammarKitPluginVersion = 2020.2.1
2331
#ideaVersion = IU-2021.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

lang-fluid/src/test/java/com/cedricziel/idea/fluid/AbstractFluidTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
import com.intellij.psi.util.PsiTreeUtil;
1212
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
1313
import org.jetbrains.annotations.NotNull;
14+
import org.junit.Ignore;
1415

1516
import java.util.List;
1617

18+
@Ignore
1719
abstract public class AbstractFluidTest extends BasePlatformTestCase {
1820
@Override
1921
public void setUp() throws Exception {

typo3-cms/src/main/java/com/cedricziel/idea/typo3/annotation/RouteAnnotator.java

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import com.cedricziel.idea.typo3.TYPO3CMSProjectSettings;
44
import com.cedricziel.idea.typo3.index.RouteIndex;
55
import com.cedricziel.idea.typo3.routing.RouteReference;
6-
import com.intellij.lang.annotation.Annotation;
6+
import com.intellij.codeInspection.ProblemHighlightType;
77
import com.intellij.lang.annotation.AnnotationHolder;
88
import com.intellij.lang.annotation.Annotator;
9-
import com.intellij.openapi.editor.DefaultLanguageHighlighterColors;
9+
import com.intellij.lang.annotation.HighlightSeverity;
1010
import com.intellij.openapi.util.TextRange;
1111
import com.intellij.psi.PsiElement;
1212
import com.intellij.psi.PsiReference;
@@ -50,11 +50,18 @@ private void annotateRoute(@NotNull PsiElement psiElement, @NotNull AnnotationHo
5050

5151
if (allKeys.contains(value)) {
5252
TextRange range = new TextRange(psiElement.getTextRange().getStartOffset(), psiElement.getTextRange().getEndOffset());
53-
Annotation annotation = annotationHolder.createInfoAnnotation(range, null);
54-
annotation.setTextAttributes(DefaultLanguageHighlighterColors.STRING);
53+
annotationHolder
54+
.newAnnotation(HighlightSeverity.INFORMATION, "")
55+
.range(range)
56+
.highlightType(ProblemHighlightType.INFORMATION)
57+
.create();
5558
} else {
5659
TextRange range = new TextRange(psiElement.getTextRange().getStartOffset() + 1, psiElement.getTextRange().getEndOffset() - 1);
57-
annotationHolder.createWeakWarningAnnotation(range, "Unresolved route");
60+
annotationHolder
61+
.newAnnotation(HighlightSeverity.WEAK_WARNING, "Unresolved route")
62+
.range(range)
63+
.highlightType(ProblemHighlightType.WEAK_WARNING)
64+
.create();
5865
}
5966
}
6067
}

typo3-cms/src/main/java/com/cedricziel/idea/typo3/resources/annotation/PathResourceAnnotator.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package com.cedricziel.idea.typo3.resources.annotation;
22

33
import com.cedricziel.idea.typo3.index.ResourcePathIndex;
4+
import com.intellij.codeInspection.ProblemHighlightType;
45
import com.intellij.lang.annotation.AnnotationHolder;
56
import com.intellij.lang.annotation.Annotator;
7+
import com.intellij.lang.annotation.HighlightSeverity;
68
import com.intellij.psi.PsiElement;
79
import com.jetbrains.php.lang.psi.elements.StringLiteralExpression;
810
import org.jetbrains.annotations.NotNull;
@@ -60,6 +62,9 @@ private String getContents(@NotNull PsiElement element) {
6062
private void createErrorMessage(@NotNull PsiElement element, @NotNull AnnotationHolder holder, String resourceName) {
6163
String message = "Resource \"%s\" could not be found in your current project.".replace("%s", resourceName);
6264

63-
holder.createWarningAnnotation(element, message);
65+
holder
66+
.newAnnotation(HighlightSeverity.WARNING, message)
67+
.highlightType(ProblemHighlightType.WARNING)
68+
.create();
6469
}
6570
}

typo3-cms/src/test/java/com/cedricziel/idea/typo3/translation/AbstractTranslationTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
import com.intellij.openapi.command.WriteCommandAction;
77
import com.intellij.openapi.fileTypes.FileTypeManager;
88
import com.intellij.util.indexing.FileBasedIndex;
9+
import org.junit.Ignore;
910

11+
@Ignore
1012
abstract public class AbstractTranslationTest extends AbstractTestCase {
1113
@Override
1214
protected void setUp() throws Exception {

0 commit comments

Comments
 (0)