Skip to content

Commit 3d42502

Browse files
authored
[All] 2020.3 compatibility (#339)
1 parent e14a903 commit 3d42502

File tree

60 files changed

+237
-454
lines changed

Some content is hidden

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

60 files changed

+237
-454
lines changed

.github/workflows/gradle.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,27 @@ jobs:
2424
strategy:
2525
matrix:
2626
include:
27-
- idea_version: "IU-2020.2"
28-
php_plugin_version: "202.6397.94"
29-
psi_viewer_plugin_version: "202-SNAPSHOT"
27+
# - idea_version: "IU-2020.2"
28+
# java_version: "1.8"
29+
# php_plugin_version: "202.6397.94"
30+
# psi_viewer_plugin_version: "202-SNAPSHOT"
31+
# grammar_kit_plugin_version: "2020.2.1"
32+
# since_build: "202"
33+
# until_build: "202.*"
34+
- idea_version: "IU-203.5981.41-EAP-SNAPSHOT"
35+
java_version: "1.11"
36+
php_plugin_version: "203.5981.43"
37+
psi_viewer_plugin_version: "203-SNAPSHOT"
3038
grammar_kit_plugin_version: "2020.2.1"
31-
since_build: "202"
32-
until_build: "202.*"
39+
since_build: "203"
40+
until_build: "203.*"
3341

3442
steps:
3543
- uses: actions/checkout@v2
36-
- name: Set up JDK 1.8
44+
- name: Set up JDK
3745
uses: actions/setup-java@v1
3846
with:
39-
java-version: 1.8
47+
java-version: ${{ matrix.java_version }}
4048
- name: Cache Gradle packages
4149
uses: actions/cache@v2
4250
with:

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sudo: false
22
dist: xenial
33
language: java
44
jdk:
5-
- openjdk8
5+
- openjdk11
66

77
before_cache:
88
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
@@ -17,7 +17,7 @@ cache:
1717

1818
matrix:
1919
include:
20-
- env: IDEA_VERSION="IU-2020.2" PHP_PLUGIN_VERSION="202.6397.94" PSI_VIEWER_PLUGIN_VERSION="202-SNAPSHOT" GRAMMAR_KIT_PLUGIN_VERSION="2020.2.1" SINCE_BUILD="202" UNTIL_BUILD="202.*"
20+
- env: IDEA_VERSION="IU-203.5981.41-EAP-SNAPSHOT" PHP_PLUGIN_VERSION="203.5981.43" PSI_VIEWER_PLUGIN_VERSION="203-SNAPSHOT" GRAMMAR_KIT_PLUGIN_VERSION="2020.2.1" SINCE_BUILD="203" UNTIL_BUILD="203.*"
2121

2222
before_install:
2323
- "export ORG_GRADLE_PROJECT_ideaVersion=${IDEA_VERSION}"

build.gradle

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

3-
buildscript {
4-
repositories {
5-
mavenCentral()
6-
7-
maven { url "https://jetbrains.bintray.com/intellij-third-party-dependencies" }
8-
9-
maven { url 'https://jitpack.io' }
10-
maven { url 'http://dl.bintray.com/jetbrains/intellij-plugin-service' }
11-
}
12-
}
13-
143
plugins {
15-
id "org.jetbrains.intellij" version "0.4.26"
16-
id "org.jetbrains.grammarkit" version "${grammarKitPluginVersion}"
4+
id "org.jetbrains.intellij" version "0.6.3"
5+
id "org.jetbrains.grammarkit" version "${grammarKitPluginVersion}" apply false
176
id 'com.palantir.git-version' version "0.12.3"
187
}
198

9+
repositories {
10+
mavenCentral()
11+
jcenter()
12+
}
13+
2014
def details = versionDetails()
2115

2216
group 'com.cedricziel.idea'
@@ -50,18 +44,25 @@ allprojects {
5044

5145
subprojects {
5246
apply plugin: 'idea'
53-
apply plugin: 'org.jetbrains.grammarkit'
5447
apply plugin: 'org.jetbrains.intellij'
5548
apply plugin: 'java'
49+
apply plugin: "org.jetbrains.grammarkit"
5650

5751
repositories {
5852
mavenCentral()
53+
jcenter()
5954
}
6055

6156
intellij {
6257
version ideaVersion
6358
sameSinceUntilBuild Boolean.valueOf(isEAP)
6459
updateSinceUntilBuild true
60+
61+
tasks {
62+
"buildSearchableOptions" {
63+
enabled = false
64+
}
65+
}
6566
}
6667

6768
publishPlugin {
@@ -78,7 +79,6 @@ subprojects {
7879
}
7980

8081
grammarKit {
81-
grammarKitRelease = grammarKitRelease
8282
jflexRelease = jFlexRelease
8383
}
8484

gradle.properties

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,15 @@ isEAP = false
77
jFlexRelease = 1.7.0-1
88

99
grammarKitPluginVersion = 2020.2.1
10-
ideaVersion = IU-2020.2
11-
phpPluginVersion = 202.6397.94
12-
psiViewerPluginVersion = 202-SNAPSHOT
13-
customSinceBuild=202
14-
customUntilBuild=202.*
10+
ideaVersion = IU-203.5981.41-EAP-SNAPSHOT
11+
phpPluginVersion = 203.5981.43
12+
psiViewerPluginVersion = 203-SNAPSHOT
13+
customSinceBuild=203
14+
customUntilBuild=203.*
1515

16-
#grammarKitPluginVersion = 2020.1
17-
#ideaVersion = IU-2020.1.1
18-
#phpPluginVersion = 201.7223.91
19-
#psiViewerPluginVersion = 201-SNAPSHOT
20-
#customSinceBuild=201
21-
#customUntilBuild=201.*
22-
23-
#grammarKitPluginVersion = 2019.3
24-
#ideaVersion = IU-2019.3.4
25-
#phpPluginVersion = 193.6911.15
26-
#psiViewerPluginVersion = 193-SNAPSHOT
27-
#customSinceBuild=193
28-
#customUntilBuild=193.*
29-
30-
#grammarKitPluginVersion = 2018.3
31-
#ideaVersion = IU-2019.2
32-
#phpPluginVersion = 192.5728.108
33-
#psiViewerPluginVersion = 192-SNAPSHOT
34-
#customSinceBuild=192
35-
#customUntilBuild=192.*
16+
#grammarKitPluginVersion = 2020.2.1
17+
#ideaVersion = IU-2020.2
18+
#phpPluginVersion = 202.6397.94
19+
#psiViewerPluginVersion = 202-SNAPSHOT
20+
#customSinceBuild=202
21+
#customUntilBuild=202.*

gradle/wrapper/gradle-wrapper.jar

3.5 KB
Binary file not shown.
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-6.6.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# you may not use this file except in compliance with the License.
88
# You may obtain a copy of the License at
99
#
10-
# http://www.apache.org/licenses/LICENSE-2.0
10+
# https://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
# Unless required by applicable law or agreed to in writing, software
1313
# distributed under the License is distributed on an "AS IS" BASIS,
@@ -82,6 +82,7 @@ esac
8282

8383
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
8484

85+
8586
# Determine the Java command to use to start the JVM.
8687
if [ -n "$JAVA_HOME" ] ; then
8788
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
@@ -125,10 +126,11 @@ if $darwin; then
125126
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
126127
fi
127128

128-
# For Cygwin, switch paths to Windows format before running java
129-
if $cygwin ; then
129+
# For Cygwin or MSYS, switch paths to Windows format before running java
130+
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
130131
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
131132
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133+
132134
JAVACMD=`cygpath --unix "$JAVACMD"`
133135

134136
# We build the pattern for arguments to be converted via cygpath
@@ -154,19 +156,19 @@ if $cygwin ; then
154156
else
155157
eval `echo args$i`="\"$arg\""
156158
fi
157-
i=$((i+1))
159+
i=`expr $i + 1`
158160
done
159161
case $i in
160-
(0) set -- ;;
161-
(1) set -- "$args0" ;;
162-
(2) set -- "$args0" "$args1" ;;
163-
(3) set -- "$args0" "$args1" "$args2" ;;
164-
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
165-
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
166-
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
167-
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
168-
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
169-
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
162+
0) set -- ;;
163+
1) set -- "$args0" ;;
164+
2) set -- "$args0" "$args1" ;;
165+
3) set -- "$args0" "$args1" "$args2" ;;
166+
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167+
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168+
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169+
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170+
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171+
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
170172
esac
171173
fi
172174

@@ -175,14 +177,9 @@ save () {
175177
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
176178
echo " "
177179
}
178-
APP_ARGS=$(save "$@")
180+
APP_ARGS=`save "$@"`
179181

180182
# Collect all arguments for the java command, following the shell quoting and substitution rules
181183
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
182184

183-
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
184-
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
185-
cd "$(dirname "$0")"
186-
fi
187-
188185
exec "$JAVACMD" "$@"

gradlew.bat

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@rem you may not use this file except in compliance with the License.
66
@rem You may obtain a copy of the License at
77
@rem
8-
@rem http://www.apache.org/licenses/LICENSE-2.0
8+
@rem https://www.apache.org/licenses/LICENSE-2.0
99
@rem
1010
@rem Unless required by applicable law or agreed to in writing, software
1111
@rem distributed under the License is distributed on an "AS IS" BASIS,
@@ -29,6 +29,9 @@ if "%DIRNAME%" == "" set DIRNAME=.
2929
set APP_BASE_NAME=%~n0
3030
set APP_HOME=%DIRNAME%
3131

32+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
33+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34+
3235
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
3336
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
3437

@@ -37,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
3740

3841
set JAVA_EXE=java.exe
3942
%JAVA_EXE% -version >NUL 2>&1
40-
if "%ERRORLEVEL%" == "0" goto init
43+
if "%ERRORLEVEL%" == "0" goto execute
4144

4245
echo.
4346
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -51,7 +54,7 @@ goto fail
5154
set JAVA_HOME=%JAVA_HOME:"=%
5255
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5356

54-
if exist "%JAVA_EXE%" goto init
57+
if exist "%JAVA_EXE%" goto execute
5558

5659
echo.
5760
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -61,28 +64,14 @@ echo location of your Java installation.
6164

6265
goto fail
6366

64-
:init
65-
@rem Get command-line arguments, handling Windows variants
66-
67-
if not "%OS%" == "Windows_NT" goto win9xME_args
68-
69-
:win9xME_args
70-
@rem Slurp the command line arguments.
71-
set CMD_LINE_ARGS=
72-
set _SKIP=2
73-
74-
:win9xME_args_slurp
75-
if "x%~1" == "x" goto execute
76-
77-
set CMD_LINE_ARGS=%*
78-
7967
:execute
8068
@rem Setup the command line
8169

8270
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
8371

72+
8473
@rem Execute Gradle
85-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
74+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
8675

8776
:end
8877
@rem End local scope for the variables with windows NT shell

lang-fluid/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import org.jetbrains.grammarkit.tasks.GenerateLexer
2-
import org.jetbrains.grammarkit.tasks.GenerateParser
1+
import org.jetbrains.grammarkit.tasks.*
2+
3+
apply plugin: 'org.jetbrains.grammarkit'
34

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

lang-fluid/src/main/java/com/cedricziel/idea/fluid/FluidBundle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.cedricziel.idea.fluid;
22

3-
import com.intellij.CommonBundle;
3+
import com.intellij.AbstractBundle;
44
import org.jetbrains.annotations.NonNls;
55
import org.jetbrains.annotations.NotNull;
66
import org.jetbrains.annotations.PropertyKey;
@@ -21,7 +21,7 @@ private FluidBundle() {
2121

2222
public static String message(@NotNull @PropertyKey(resourceBundle = PATH_TO_BUNDLE) String key, @NotNull Object... params) {
2323

24-
return CommonBundle.message(getBundle(), key, params);
24+
return AbstractBundle.message(getBundle(), key, params);
2525
}
2626

2727
private static ResourceBundle getBundle() {

0 commit comments

Comments
 (0)