Skip to content

Commit

Permalink
build: update to id("org.jetbrains.grammarkit") version "2022.3.2.2"
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Feb 24, 2024
1 parent 27c99cb commit 0b6b8fc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ plugins {
// Kotlin support
id("org.jetbrains.kotlin.jvm") version "1.9.21"
// Gradle IntelliJ Plugin
id("org.jetbrains.intellij") version "1.16.1"
id("org.jetbrains.intellij") version "1.17.2"
// Gradle Changelog Plugin
id("org.jetbrains.changelog") version "2.2.0"
// Gradle Qodana Plugin
id("org.jetbrains.qodana") version "2023.2.1"
// Gradle Kover Plugin
id("org.jetbrains.kotlinx.kover") version "0.6.1"
// grammar Plugin
id("org.jetbrains.grammarkit") version "2022.3.2.1"
id("org.jetbrains.grammarkit") version "2022.3.2.2"
}

group = properties("pluginGroup")
Expand Down Expand Up @@ -68,10 +68,7 @@ tasks {
sourceFile.set(File("src/main/grammars/prql.flex"))

// target directory for lexer
targetDir.set("src/main/gen/org/mvnsearch/plugins/prql/lang/lexer/")

// target classname, target file will be targetDir/targetClass.java
targetClass.set("PrqlLexer")
targetOutputDir.set(project.layout.projectDirectory.dir("src/main/gen/org/mvnsearch/plugins/prql/lang/lexer/"))

// if set, plugin will remove a lexer output file before generating new one. Default: false
purgeOldFiles.set(true)
Expand All @@ -82,7 +79,7 @@ tasks {
sourceFile.set(File("src/main/grammars/prql.bnf"))

// optional, task-specific root for the generated files. Default: none
targetRoot.set("src/main/gen")
targetRootOutputDir.set(project.layout.projectDirectory.dir("src/main/gen"))

// path to a parser file, relative to the targetRoot
pathToParser.set("/org/mvnsearch/plugins/prql/parser/PrqlParserGenerated.java")
Expand Down

0 comments on commit 0b6b8fc

Please sign in to comment.