@@ -26,7 +26,7 @@ fun getVersionNumber() : String {
2626plugins {
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") {
176175tasks.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