Skip to content

Commit bf9438c

Browse files
committed
fix issues
1 parent c6faad1 commit bf9438c

4 files changed

Lines changed: 10 additions & 32 deletions

File tree

.github/workflows/build_plugin.yml

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,9 @@ on:
77
pull_request:
88

99
jobs:
10-
# Run Gradle Wrapper Validation Action to verify the wrapper's checksum
11-
gradleValidation:
12-
name: Gradle Wrapper
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v5
16-
17-
# Validate wrapper
18-
- name: Gradle Wrapper Validation
19-
uses: gradle/actions/wrapper-validation@v3
20-
2110
# Run verifyPlugin and test Gradle tasks
2211
test:
2312
name: Test
24-
needs: gradleValidation
2513
runs-on: ubuntu-latest
2614
steps:
2715
- uses: actions/checkout@v5
@@ -46,19 +34,9 @@ jobs:
4634
distribution: temurin
4735
cache: gradle
4836

49-
# Cache Gradle dependencies
50-
- name: Setup Cache
51-
uses: actions/cache@v4
52-
with:
53-
path: ~/.gradle/caches
54-
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
55-
56-
# Cache Gradle Wrapper
57-
- name: Setup Gradle Wrapper Cache
58-
uses: actions/cache@v4
59-
with:
60-
path: ~/.gradle/wrapper
61-
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
37+
# Setup Gradle (auto-caches dependencies and validates wrapper)
38+
- name: Setup Gradle
39+
uses: gradle/actions/setup-gradle@v5
6240

6341
# Run EditorConfig Linter
6442
- name: Run EditorConfig Linter
@@ -114,7 +92,7 @@ jobs:
11492

11593
# Upload plugin artifact to make it available in the next jobs
11694
- name: Upload artifact
117-
uses: actions/upload-artifact@v5
95+
uses: actions/upload-artifact@v4
11896
with:
11997
name: plugin-artifact
12098
path: ./build/distributions
@@ -149,7 +127,6 @@ jobs:
149127
failure-levels: |
150128
COMPATIBILITY_WARNINGS
151129
COMPATIBILITY_PROBLEMS
152-
DEPRECATED_API_USAGES
153130
INTERNAL_API_USAGES
154131
OVERRIDE_ONLY_API_USAGES
155132
NON_EXTENDABLE_API_USAGES
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ideaIC:2025.1
2-
ideaIC:251-LATEST-SNAPSHOT
2+
ideaIC:251-EAP-SNAPSHOT
33
pycharmPC:2025.1
4-
pycharmPC:251-LATEST-SNAPSHOT
4+
pycharmPC:251-EAP-SNAPSHOT

.github/workflows/verify_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
# Run Qodana code inspections
5555
- name: Run Qodana Code Inspection
56-
uses: JetBrains/qodana-action@v2025.2.1
56+
uses: JetBrains/qodana-action@v2025.1.0
5757
with:
5858
args: --linter=qodana-jvm-community
5959

build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import org.gradle.kotlin.dsl.register
12
import org.jetbrains.changelog.Changelog
23
import org.jetbrains.changelog.markdownToHTML
34
import org.jetbrains.grammarkit.tasks.GenerateLexerTask
@@ -158,14 +159,14 @@ qodana {
158159
}
159160

160161
val generateAhkLexer =
161-
task<GenerateLexerTask>("generateAhkLexer") {
162+
tasks.register<GenerateLexerTask>("generateAhkLexer") {
162163
sourceFile.set(file("src/main/kotlin/com/autohotkey/lang/lexer/AutoHotkey.flex"))
163164
targetOutputDir.set(file("src/main/gen/com/autohotkey/"))
164165
purgeOldFiles.set(true)
165166
}
166167

167168
val generateAhkParser =
168-
task<GenerateParserTask>("generateAhkParser") {
169+
tasks.register<GenerateParserTask>("generateAhkParser") {
169170
sourceFile.set(file("src/main/kotlin/com/autohotkey/lang/parser/AutoHotkey.bnf"))
170171
targetRootOutputDir.set(file("src/main/gen"))
171172
pathToParser.set("com/autohotkey/lang/parser/AhkParser.java")

0 commit comments

Comments
 (0)