Skip to content

Commit b450982

Browse files
Steve RamageSJrX
authored andcommitted
chore: update gradle plugin for grammarkit to 2022.3.2.2
1 parent 4cbad3e commit b450982

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

build.gradle.kts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fun getVersionNumber() : String {
2626
plugins {
2727
id("java")
2828
id("org.jetbrains.intellij") version "1.13.2"
29-
id("org.jetbrains.grammarkit") version "2022.3"
29+
id("org.jetbrains.grammarkit") version "2022.3.2.2"
3030
id("checkstyle")
3131
id("com.avast.gradle.docker-compose") version "0.16.11"
3232
id("org.jetbrains.kotlin.jvm") version "2.0.0"
@@ -165,9 +165,8 @@ tasks.register<GenerateLexerTask>("generateLexerTask") {
165165
description = "Generate the lexer necessary for parsing unit files using JFlex"
166166
group = "generation"
167167

168-
source.set("src/main/resources/net/sjrx/intellij/plugins/systemdunitfiles/lexer/SystemdUnitFile.flex")
169-
targetDir.set("src/main/gen/net/sjrx/intellij/plugins/systemdunitfiles/generated/")
170-
targetClass.set("UnitFileLexer")
168+
sourceFile.set(file("src/main/resources/net/sjrx/intellij/plugins/systemdunitfiles/lexer/SystemdUnitFile.flex"))
169+
targetOutputDir.set(file("src/main/gen/net/sjrx/intellij/plugins/systemdunitfiles/generated/"))
171170
purgeOldFiles.set(true)
172171

173172
mustRunAfter(tasks.compileJava)
@@ -176,8 +175,8 @@ tasks.register<GenerateLexerTask>("generateLexerTask") {
176175
tasks.register<GenerateParserTask>("generateParserTask") {
177176
description = "Generate the grammar necessary for parsing unit files using GrammarKit"
178177
group = "generation"
179-
source.set("src/main/resources/net/sjrx/intellij/plugins/systemdunitfiles/grammar/SystemdUnitFile.bnf")
180-
targetRoot.set("src/main/gen/")
178+
sourceFile.set(file("src/main/resources/net/sjrx/intellij/plugins/systemdunitfiles/grammar/SystemdUnitFile.bnf"))
179+
targetRootOutputDir.set(file("src/main/gen/"))
181180

182181
// path to a parser file, relative to the targetRoot
183182
pathToParser.set("net/sjrx/intellij/plugins/systemdunitfiles/generated/UnitFileParser.java")

0 commit comments

Comments
 (0)