Skip to content

Commit c3ee4fc

Browse files
chore(deps): upgrade to template 2.2.0, upgrade deps
1 parent 3e61876 commit c3ee4fc

File tree

9 files changed

+72
-47
lines changed

9 files changed

+72
-47
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ concurrency:
2626

2727
jobs:
2828

29-
# Prepare environment and build the plugin
29+
# Prepare the environment and build the plugin
3030
build:
3131
name: Build
3232
runs-on: ubuntu-latest
@@ -36,16 +36,23 @@ jobs:
3636
pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }}
3737
steps:
3838

39+
# Free GitHub Actions Environment Disk Space
40+
- name: Maximize Build Space
41+
uses: jlumbroso/free-disk-space@v1.3.1
42+
with:
43+
tool-cache: false
44+
large-packages: false
45+
3946
# Check out the current repository
4047
- name: Fetch Sources
4148
uses: actions/checkout@v4
4249

43-
# Set up Java environment for the next steps
50+
# Set up the Java environment for the next steps
4451
- name: Setup Java
4552
uses: actions/setup-java@v4
4653
with:
4754
distribution: zulu
48-
java-version: 17
55+
java-version: 21
4956

5057
# Setup Gradle
5158
- name: Setup Gradle
@@ -61,8 +68,6 @@ jobs:
6168
CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)"
6269
6370
echo "version=$VERSION" >> $GITHUB_OUTPUT
64-
echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
65-
6671
echo "changelog<<EOF" >> $GITHUB_OUTPUT
6772
echo "$CHANGELOG" >> $GITHUB_OUTPUT
6873
echo "EOF" >> $GITHUB_OUTPUT
@@ -82,7 +87,7 @@ jobs:
8287
8388
echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT
8489
85-
# Store already-built plugin as an artifact for downloading
90+
# Store an already-built plugin as an artifact for downloading
8691
- name: Upload artifact
8792
uses: actions/upload-artifact@v4
8893
with:
@@ -96,20 +101,29 @@ jobs:
96101
runs-on: ubuntu-latest
97102
steps:
98103

104+
# Free GitHub Actions Environment Disk Space
105+
- name: Maximize Build Space
106+
uses: jlumbroso/free-disk-space@v1.3.1
107+
with:
108+
tool-cache: false
109+
large-packages: false
110+
99111
# Check out the current repository
100112
- name: Fetch Sources
101113
uses: actions/checkout@v4
102114

103-
# Set up Java environment for the next steps
115+
# Set up the Java environment for the next steps
104116
- name: Setup Java
105117
uses: actions/setup-java@v4
106118
with:
107119
distribution: zulu
108-
java-version: 17
120+
java-version: 21
109121

110122
# Setup Gradle
111123
- name: Setup Gradle
112124
uses: gradle/actions/setup-gradle@v4
125+
with:
126+
cache-read-only: true
113127

114128
# Run tests
115129
- name: Run Tests
@@ -128,8 +142,9 @@ jobs:
128142
uses: codecov/codecov-action@v5
129143
with:
130144
files: ${{ github.workspace }}/build/reports/kover/report.xml
145+
token: ${{ secrets.CODECOV_TOKEN }}
131146

132-
# Run Qodana inspections and provide report
147+
# Run Qodana inspections and provide a report
133148
inspectCode:
134149
name: Inspect code
135150
needs: [ build ]
@@ -142,7 +157,7 @@ jobs:
142157

143158
# Free GitHub Actions Environment Disk Space
144159
- name: Maximize Build Space
145-
uses: jlumbroso/free-disk-space@main
160+
uses: jlumbroso/free-disk-space@v1.3.1
146161
with:
147162
tool-cache: false
148163
large-packages: false
@@ -154,16 +169,16 @@ jobs:
154169
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
155170
fetch-depth: 0 # a full history is required for pull request analysis
156171

157-
# Set up Java environment for the next steps
172+
# Set up the Java environment for the next steps
158173
- name: Setup Java
159174
uses: actions/setup-java@v4
160175
with:
161176
distribution: zulu
162-
java-version: 17
177+
java-version: 21
163178

164179
# Run Qodana inspections
165180
- name: Qodana - Code Inspection
166-
uses: JetBrains/qodana-action@v2024.3
181+
uses: JetBrains/qodana-action@v2025.1.1
167182
with:
168183
cache-default-branch-only: true
169184

@@ -176,7 +191,7 @@ jobs:
176191

177192
# Free GitHub Actions Environment Disk Space
178193
- name: Maximize Build Space
179-
uses: jlumbroso/free-disk-space@main
194+
uses: jlumbroso/free-disk-space@v1.3.1
180195
with:
181196
tool-cache: false
182197
large-packages: false
@@ -185,29 +200,22 @@ jobs:
185200
- name: Fetch Sources
186201
uses: actions/checkout@v4
187202

188-
# Set up Java environment for the next steps
203+
# Set up the Java environment for the next steps
189204
- name: Setup Java
190205
uses: actions/setup-java@v4
191206
with:
192207
distribution: zulu
193-
java-version: 17
208+
java-version: 21
194209

195210
# Setup Gradle
196211
- name: Setup Gradle
197212
uses: gradle/actions/setup-gradle@v4
198-
199-
# Cache Plugin Verifier IDEs
200-
- name: Setup Plugin Verifier IDEs Cache
201-
uses: actions/cache@v4
202213
with:
203-
path: ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides
204-
key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }}
214+
cache-read-only: true
205215

206216
# Run Verify Plugin task and IntelliJ Plugin Verifier tool
207217
- name: Run Plugin Verification tasks
208-
run: exit 0
209-
# Disabled until it works again for a lot of IDEs (https://github.com/JetBrains/intellij-platform-plugin-template/issues/462)
210-
# run: ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
218+
run: ./gradlew verifyPlugin
211219

212220
# Collect Plugin Verifier Result
213221
- name: Collect Plugin Verifier Result
@@ -218,7 +226,7 @@ jobs:
218226
path: ${{ github.workspace }}/build/reports/pluginVerifier
219227

220228
# Prepare a draft release for GitHub Releases page for the manual verification
221-
# If accepted and published, release workflow would be triggered
229+
# If accepted and published, the release workflow would be triggered
222230
releaseDraft:
223231
name: Release draft
224232
if: github.event_name != 'pull_request'

.github/workflows/release.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# GitHub Actions Workflow created for handling the release process based on the draft release prepared with the Build workflow.
2-
# Running the publishPlugin task requires all following secrets to be provided: PUBLISH_TOKEN, PRIVATE_KEY, PRIVATE_KEY_PASSWORD, CERTIFICATE_CHAIN.
2+
# Running the publishPlugin task requires all the following secrets to be provided: PUBLISH_TOKEN, PRIVATE_KEY, PRIVATE_KEY_PASSWORD, CERTIFICATE_CHAIN.
33
# See https://plugins.jetbrains.com/docs/intellij/plugin-signing.html for more information.
44

55
name: Release
@@ -18,22 +18,31 @@ jobs:
1818
pull-requests: write
1919
steps:
2020

21+
# Free GitHub Actions Environment Disk Space
22+
- name: Maximize Build Space
23+
uses: jlumbroso/free-disk-space@v1.3.1
24+
with:
25+
tool-cache: false
26+
large-packages: false
27+
2128
# Check out the current repository
2229
- name: Fetch Sources
2330
uses: actions/checkout@v4
2431
with:
2532
ref: ${{ github.event.release.tag_name }}
2633

27-
# Set up Java environment for the next steps
34+
# Set up the Java environment for the next steps
2835
- name: Setup Java
2936
uses: actions/setup-java@v4
3037
with:
3138
distribution: zulu
32-
java-version: 17
39+
java-version: 21
3340

3441
# Setup Gradle
3542
- name: Setup Gradle
3643
uses: gradle/actions/setup-gradle@v4
44+
with:
45+
cache-read-only: true
3746

3847
# Set environment variables
3948
- name: Export Properties
@@ -66,7 +75,7 @@ jobs:
6675
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
6776
run: ./gradlew publishPlugin
6877

69-
# Upload artifact as a release asset
78+
# Upload an artifact as a release asset
7079
- name: Upload Release Asset
7180
env:
7281
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/run-ui-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,18 @@ jobs:
3535
- name: Fetch Sources
3636
uses: actions/checkout@v4
3737

38-
# Set up Java environment for the next steps
38+
# Set up the Java environment for the next steps
3939
- name: Setup Java
4040
uses: actions/setup-java@v4
4141
with:
4242
distribution: zulu
43-
java-version: 17
43+
java-version: 21
4444

4545
# Setup Gradle
4646
- name: Setup Gradle
4747
uses: gradle/actions/setup-gradle@v4
48+
with:
49+
cache-read-only: true
4850

4951
# Run IDEA prepared for UI testing
5052
- name: Run IDE

build.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ intellijPlatform {
8888

8989
ideaVersion {
9090
sinceBuild = providers.gradleProperty("pluginSinceBuild")
91-
untilBuild = providers.gradleProperty("pluginUntilBuild").takeIf {
92-
!it.orNull.isNullOrBlank()
93-
} ?: provider { null }
9491
}
9592
}
9693

codecov.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
informational: true
6+
threshold: 0%
7+
base: auto
8+
patch:
9+
default:
10+
informational: true

gradle.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ pluginVersion = 3.6.1
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1010
pluginSinceBuild = 223
11-
pluginUntilBuild =
1211

1312
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
1413
platformType = IC
@@ -21,7 +20,7 @@ platformPlugins =
2120
platformBundledPlugins =
2221

2322
# Gradle Releases -> https://github.com/gradle/gradle/releases
24-
gradleVersion = 8.13
23+
gradleVersion = 8.14.3
2524

2625
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
2726
kotlin.stdlib.default.dependency = false

gradle/libs.versions.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[versions]
22
# libraries
3-
caffeine = "3.2.1"
4-
datetime = "0.6.2"
3+
caffeine = "3.2.2"
4+
datetime = "0.7.1"
55
junit = "4.13.2"
66
opentest4j = "1.3.0"
7-
serialization = "1.8.1"
8-
semver4j = "5.7.1"
7+
serialization = "1.9.0"
8+
semver4j = "6.0.0"
99

1010
# plugins
11-
changelog = "2.2.1"
12-
intellijPlatform = "2.6.0"
13-
kotlin = "2.1.21"
11+
changelog = "2.3.0"
12+
intellijPlatform = "2.7.0"
13+
kotlin = "2.2.0"
1414
kover = "0.9.1"
1515
qodana = "2025.1.1"
1616

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-8.14.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

qodana.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Qodana configuration:
22
# https://www.jetbrains.com/help/qodana/qodana-yaml.html
33

4-
version: 1.0
4+
version: "1.0"
55
linter: jetbrains/qodana-jvm-community:2024.3
6-
projectJDK: "17"
6+
projectJDK: "21"
77
profile:
88
name: qodana.recommended
99
exclude:

0 commit comments

Comments
 (0)