From 60c7aad42791cb8d057ed9a69cc71105261f86b8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 5 Apr 2024 06:57:53 +0000 Subject: [PATCH 1/3] Update plugin org.jetbrains.grammarkit to v2022.3.2.2 --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5ca5374..6fe245f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,7 +10,7 @@ plugins { id("org.jetbrains.intellij") version "1.17.3" id("org.jetbrains.changelog") version "2.2.0" id("org.jetbrains.kotlinx.kover") version "0.7.6" - id("org.jetbrains.grammarkit") version "2022.3.2.1" + id("org.jetbrains.grammarkit") version "2022.3.2.2" } group = properties("pluginGroup") From fe259f0d20271573ba913bbe4582aee416595c05 Mon Sep 17 00:00:00 2001 From: Dirk Groot Date: Fri, 5 Apr 2024 09:04:42 +0200 Subject: [PATCH 2/3] Fix build.gradle.kts script compilation errors --- build.gradle.kts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 6fe245f..a4b2611 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -102,10 +102,7 @@ tasks { sourceFile.set(File("src/main/grammar/StructurizrDSL.flex")) // target directory for lexer - targetDir.set("src/main/gen/nl/dirkgroot/structurizr/dsl/") - - // target classname, target file will be targetDir/targetClass.java - targetClass.set("StructurizrDSLLexer") + targetOutputDir.set(File("src/main/gen/nl/dirkgroot/structurizr/dsl/")) // if set, plugin will remove a lexer output file before generating new one. Default: false purgeOldFiles.set(true) From bedce9b4d404363586faa81e08c89182f267a305 Mon Sep 17 00:00:00 2001 From: Dirk Groot Date: Fri, 5 Apr 2024 09:10:35 +0200 Subject: [PATCH 3/3] Disable purging of old lexer files This deletes the generated parser files as well. Maybe it's better to have generated lexer and parser sources have their own source folders. Something to consider for the future... --- build.gradle.kts | 3 --- 1 file changed, 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index a4b2611..16c1248 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -103,9 +103,6 @@ tasks { // target directory for lexer targetOutputDir.set(File("src/main/gen/nl/dirkgroot/structurizr/dsl/")) - - // if set, plugin will remove a lexer output file before generating new one. Default: false - purgeOldFiles.set(true) } signPlugin {