Skip to content

Commit 586bc89

Browse files
committed
Ensure grammar generation tasks run before compilation and build
1 parent e5d7054 commit 586bc89

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.claude/commands/create_pr.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ This document describes the format and rules for creating a Pull Request (PR) on
88

99
## PR Guidelines
1010
- If there are unstaged changes when creating a pull request, please split them appropriately and commit them separately.
11-
- When using the gh command, first authenticate with ```gh auth login```.
1211
- Use the [PR Template](../templates/PR_TEMPLATE.md) for PR descriptions
1312
- PR titles should be concise and descriptive
1413
- Ensure all tests pass before submitting a PR

build.gradle.kts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,28 @@ tasks {
180180
publishPlugin {
181181
dependsOn(patchChangelog)
182182
}
183+
184+
// Ensure generateLexer and generateParser run before compilation
185+
compileJava {
186+
dependsOn(generateLexer, generateParser)
187+
}
188+
189+
compileKotlin {
190+
dependsOn(generateLexer, generateParser)
191+
}
192+
193+
compileTestJava {
194+
dependsOn(generateLexer, generateParser)
195+
}
196+
197+
compileTestKotlin {
198+
dependsOn(generateLexer, generateParser)
199+
}
200+
201+
// Ensure build task depends on grammar generation
202+
build {
203+
dependsOn(generateLexer, generateParser)
204+
}
183205
}
184206

185207
tasks.register("encodeBase64") {

0 commit comments

Comments
 (0)