Skip to content

Commit 1393fc7

Browse files
committed
Update plugin template
1 parent d3c105d commit 1393fc7

File tree

6 files changed

+16
-23
lines changed

6 files changed

+16
-23
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ jobs:
5353

5454
# Setup Gradle
5555
- name: Setup Gradle
56-
uses: gradle/actions/setup-gradle@v3
57-
with:
58-
gradle-home-cache-cleanup: true
56+
uses: gradle/actions/setup-gradle@v4
5957

6058
# Set environment variables
6159
- name: Export Properties
@@ -115,9 +113,7 @@ jobs:
115113

116114
# Setup Gradle
117115
- name: Setup Gradle
118-
uses: gradle/actions/setup-gradle@v3
119-
with:
120-
gradle-home-cache-cleanup: true
116+
uses: gradle/actions/setup-gradle@v4
121117

122118
# Run tests
123119
- name: Run Tests
@@ -158,6 +154,9 @@ jobs:
158154
# Check out the current repository
159155
- name: Fetch Sources
160156
uses: actions/checkout@v4
157+
with:
158+
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
159+
fetch-depth: 0 # a full history is required for pull request analysis
161160

162161
# Set up Java environment for the next steps
163162
- name: Setup Java
@@ -168,7 +167,7 @@ jobs:
168167

169168
# Run Qodana inspections
170169
- name: Qodana - Code Inspection
171-
uses: JetBrains/qodana-action@v2024.1.5
170+
uses: JetBrains/qodana-action@v2024.2
172171
with:
173172
cache-default-branch-only: true
174173

@@ -199,9 +198,7 @@ jobs:
199198

200199
# Setup Gradle
201200
- name: Setup Gradle
202-
uses: gradle/actions/setup-gradle@v3
203-
with:
204-
gradle-home-cache-cleanup: true
201+
uses: gradle/actions/setup-gradle@v4
205202

206203
# Cache Plugin Verifier IDEs
207204
- name: Setup Plugin Verifier IDEs Cache
@@ -257,4 +254,4 @@ jobs:
257254
--notes "$(cat << 'EOM'
258255
${{ needs.build.outputs.changelog }}
259256
EOM
260-
)"
257+
)"

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ jobs:
3333

3434
# Setup Gradle
3535
- name: Setup Gradle
36-
uses: gradle/actions/setup-gradle@v3
37-
with:
38-
gradle-home-cache-cleanup: true
36+
uses: gradle/actions/setup-gradle@v4
3937

4038
# Set environment variables
4139
- name: Export Properties
@@ -100,4 +98,4 @@ jobs:
10098
--title "Changelog update - \`$VERSION\`" \
10199
--body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \
102100
--label "$LABEL" \
103-
--head $BRANCH
101+
--head $BRANCH

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ jobs:
4444

4545
# Setup Gradle
4646
- name: Setup Gradle
47-
uses: gradle/actions/setup-gradle@v3
48-
with:
49-
gradle-home-cache-cleanup: true
47+
uses: gradle/actions/setup-gradle@v4
5048

5149
# Run IDEA prepared for UI testing
5250
- name: Run IDE
@@ -62,4 +60,4 @@ jobs:
6260

6361
# Run tests
6462
- name: Tests
65-
run: ./gradlew test
63+
run: ./gradlew test

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ platformVersion = 2023.2
1212
platformPlugins =
1313
platformBundledPlugins = com.intellij.java,org.toml.lang
1414

15-
gradleVersion = 8.9
15+
gradleVersion = 8.10.2
1616

1717
kotlin.stdlib.default.dependency = false
1818
org.gradle.configuration-cache = true

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ junit = "4.13.2"
44

55
# plugins
66
changelog = "2.2.1"
7-
intelliJPlatform = "2.0.1"
7+
intelliJPlatform = "2.1.0"
88
kotlin = "1.9.25"
99
kover = "0.8.3"
10-
qodana = "2024.1.9"
10+
qodana = "2024.2.3"
1111

1212
[libraries]
1313
junit = { group = "junit", name = "junit", version.ref = "junit" }

qodana.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: 1.0
2-
linter: jetbrains/qodana-jvm-community:latest
2+
linter: jetbrains/qodana-jvm-community:2024.2
33
projectJDK: "17"
44
profile:
55
name: qodana.recommended

0 commit comments

Comments
 (0)