import org.jetbrains.intellij.platform.gradle.TestFrameworkType plugins { id("org.jetbrains.kotlin.jvm") id("org.jetbrains.changelog") id("org.jetbrains.intellij.platform") id("org.jetbrains.intellij.platform.grammarkit") } sourceSets { main { java.srcDirs("src/main/gen") } } // Read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html dependencies { testImplementation(libs.junit) // IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html intellijPlatform { intellijIdea("2025.3.5") testFramework(TestFrameworkType.Platform) // Add plugin dependencies for compilation here, for example: // bundledPlugin("com.intellij.java") } } tasks.generateParser { sourceFile.set(file("src/main/grammar/Jai.bnf")) targetRootOutputDir.set(file("src/main/gen")) pathToParser.set("dev/hgh/jai/parser/JaiParser.java") pathToPsiRoot.set("dev/hgh/jai/psi") purgeOldFiles.set(true) }