Skip to content

Commit 39424c3

Browse files
committed
Merge remote-tracking branch 'origin/update-from-template' into develop
2 parents 740100d + b3a201d commit 39424c3

File tree

6 files changed

+78
-29
lines changed

6 files changed

+78
-29
lines changed

.github/workflows/check-ide-compatibility.yml

Lines changed: 57 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,32 @@ jobs:
1313
- name: Free up disk space
1414
run: |
1515
sudo df -h
16-
sudo docker system prune -af || true
17-
sudo rm -rf /usr/share/dotnet \
18-
/usr/local/.ghcup \
19-
/usr/local/swift \
20-
/usr/share/swift \
21-
/usr/lib/jvm \
22-
/usr/local/lib/android \
23-
/usr/lib/google-cloud-sdk \
24-
/usr/local/share/boost \
25-
/usr/local/share/powershell \
26-
/usr/local/share/chromium \
27-
/usr/local/lib/node_modules \
28-
/usr/lib/mono \
29-
/usr/lib/heroku \
30-
/usr/lib/firefox \
31-
/usr/share/miniconda \
32-
/opt/microsoft \
33-
/opt/chrome \
34-
/opt/pipx \
35-
"$AGENT_TOOLSDIRECTORY" || true
16+
declare -a paths_to_wipe=(
17+
"/usr/share/dotnet"
18+
"/usr/local/.ghcup"
19+
"/usr/local/swift"
20+
"/usr/share/swift"
21+
"/usr/lib/jvm"
22+
"/usr/local/lib/android"
23+
"/usr/lib/google-cloud-sdk"
24+
"/usr/local/share/boost"
25+
"/usr/local/share/powershell"
26+
"/usr/local/share/chromium"
27+
"/usr/local/lib/node_modules"
28+
"/usr/lib/mono"
29+
"/usr/lib/heroku"
30+
"/usr/lib/firefox"
31+
"/usr/share/miniconda"
32+
"/opt/microsoft"
33+
"/opt/chrome"
34+
"/opt/pipx"
35+
"$AGENT_TOOLSDIRECTORY"
36+
)
37+
for p in "${paths_to_wipe[@]}"
38+
do
39+
echo "Clearing $p"
40+
sudo rm -rf $p || true
41+
done
3642
sudo df -h
3743
3844
- uses: actions/checkout@v5
@@ -54,11 +60,42 @@ jobs:
5460
${{ runner.os }}-gradle-ide-compatibility-
5561
5662
- name: Check compatibility
63+
id: check-compatibility
5764
run: ./gradlew verifyPlugin --info --stacktrace
5865

5966
- name: Upload report
6067
uses: actions/upload-artifact@v4
68+
if: ${{ always() }}
6169
with:
6270
name: plugin-verifier-reports
6371
path: build/reports/pluginVerifier/**
6472
if-no-files-found: warn
73+
74+
- name: Find already existing issue
75+
id: find-issue
76+
if: ${{ always() }}
77+
run: |
78+
echo "number=$(gh issue list -l 'bug' -l 'automated' -L 1 -S 'in:title \"IDE Compatibility Problem\"' -s 'open' --json 'number' --jq '.[].number')" >> $GITHUB_OUTPUT
79+
env:
80+
GH_TOKEN: ${{ github.token }}
81+
82+
- name: Close issue if everything is fine
83+
if: ${{ success() && steps.find-issue.outputs.number != '' }}
84+
run: gh issue close -r 'not planned' ${{ steps.find-issue.outputs.number }}
85+
env:
86+
GH_TOKEN: ${{ github.token }}
87+
88+
- name: Create issue report
89+
if: ${{ failure() && steps.check-compatibility.conclusion == 'failure' }}
90+
run: |
91+
echo 'Encountered problems during plugin verification' > reported.md
92+
echo 'Please check the build logs for details' >> reported.md
93+
94+
- name: Create Issue From File
95+
if: ${{ failure() && steps.check-compatibility.conclusion == 'failure' }}
96+
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5
97+
with:
98+
issue-number: ${{ steps.find-issue.outputs.number }}
99+
title: IDE Compatibility Problem
100+
content-filepath: ./reported.md
101+
labels: bug, automated

build.gradle

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ configurations.checkstyle {
4545
}
4646

4747
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
48+
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
49+
50+
// Add dependencies to test, junit5 api (annotations) and engine (runtime)
4851
dependencies {
4952
intellijPlatform {
5053
create(properties("platformType"), properties("platformVersion"))
@@ -61,7 +64,7 @@ dependencies {
6164
testImplementation platform('org.junit:junit-bom:5.13.4'),
6265
'org.junit.jupiter:junit-jupiter',
6366
'org.junit.jupiter:junit-jupiter-engine',
64-
'org.assertj:assertj-core:3.27.4'
67+
'org.assertj:assertj-core:3.27.6'
6568
testRuntimeOnly("org.junit.platform:junit-platform-launcher") {
6669
because("Only needed to run tests in a version of IntelliJ IDEA that bundles older versions")
6770
}
@@ -73,8 +76,13 @@ dependencies {
7376
// See https://www.jetbrains.com/intellij-repository/releases
7477
intellijPlatform {
7578
pluginConfiguration {
79+
id = properties("pluginGroup")
7680
name = properties("pluginName")
7781
version = properties("pluginVersion")
82+
ideaVersion {
83+
sinceBuild = properties("platformSinceBuild")
84+
untilBuild = provider { null }
85+
}
7886
}
7987
patchPluginXml {
8088
pluginId = properties("pluginGroup")
@@ -85,7 +93,15 @@ intellijPlatform {
8593
}
8694
pluginVerification {
8795
ides {
88-
recommended()
96+
select {
97+
it.types = [IntelliJPlatformType.IntellijIdeaCommunity]
98+
it.sinceBuild = properties("platformSinceBuild")
99+
it.untilBuild = '252.*'
100+
}
101+
select {
102+
it.types = [IntelliJPlatformType.IntellijIdea]
103+
it.sinceBuild = '253'
104+
}
89105
}
90106
}
91107
signPlugin {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pluginName=Save Actions X
55
pluginVersion=1.5.1-SNAPSHOT
66
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
77
platformType=IC
8-
platformVersion=2025.2
8+
platformVersion=2025.2.2
99
platformSinceBuild=252
1010
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1111
# Example: platformBundledPlugins = com.intellij.java, com.jetbrains.php:203.4449.22

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ case "$( uname )" in #(
114114
NONSTOP* ) nonstop=true ;;
115115
esac
116116

117-
CLASSPATH="\\\"\\\""
118117

119118

120119
# Determine the Java command to use to start the JVM.
@@ -172,7 +171,6 @@ fi
172171
# For Cygwin or MSYS, switch paths to Windows format before running java
173172
if "$cygwin" || "$msys" ; then
174173
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
175-
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
176174

177175
JAVACMD=$( cygpath --unix "$JAVACMD" )
178176

@@ -212,7 +210,6 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
212210

213211
set -- \
214212
"-Dorg.gradle.appname=$APP_BASE_NAME" \
215-
-classpath "$CLASSPATH" \
216213
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
217214
"$@"
218215

gradlew.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ goto fail
7070
:execute
7171
@rem Setup the command line
7272

73-
set CLASSPATH=
7473

7574

7675
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
76+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7877

7978
:end
8079
@rem End local scope for the variables with windows NT shell

0 commit comments

Comments
 (0)