Skip to content

Commit

Permalink
fix plugin dependencies (#155)
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Gramer <[email protected]>
  • Loading branch information
vgramer authored Aug 13, 2023
1 parent 58ebded commit cf7c22a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ plugins {
idea
kotlin("jvm") version "1.9.0"
id("org.jetbrains.intellij") version "1.15.0"
id("org.jetbrains.grammarkit") version "2022.3.1"
id("org.jetbrains.grammarkit") version "2021.2.2"
}

allprojects {
Expand Down Expand Up @@ -176,15 +176,15 @@ project(":") {
}

val generateRegoLexer = task<GenerateLexerTask>("generateRegoLexer") {
sourceFile.set(file("src/main/grammar/RegoLexer.flex"))
source.set("src/main/grammar/RegoLexer.flex")
targetDir.set("src/main/gen/org/openpolicyagent/ideaplugin/lang/lexer")
targetClass.set("_RegoLexer")
purgeOldFiles.set(true)
}


val generateRegoParser = task<GenerateParserTask>("generateRegoParser") {
sourceFile.set(file("src/main/grammar/Rego.bnf"))
source.set("src/main/grammar/Rego.bnf")
targetRoot.set("src/main/gen")
pathToParser.set("/org/openpolicyagent/ideaplugin/lang/parser/RegoParser.java")
pathToPsiRoot.set("/org/openpolicyagent/ideaplugin/lang/psi")
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ kotlin.code.style=official
baseIDE=idea

# if you change the version of ide, also change psiViewerPluginVersion accordingly (cf https://plugins.jetbrains.com/plugin/227-psiviewer/versions)
ideaVersion=IC-2023.2
pycharmCommunityVersion=PC-2023.2
psiViewerPluginVersion=232.2
ideaVersion=IC-2023.1
pycharmCommunityVersion=PC-2023.1
psiViewerPluginVersion=231-SNAPSHOT

# see https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for more information
sinceBuild=232
untilBuild=233.*
sinceBuild=231
untilBuild=232.*

# these two variables will be overwritten by the release process (i.e. the GitHub action) thanks to the env variables:
# - ORG_GRADLE_PROJECT_publishToken
Expand Down

0 comments on commit cf7c22a

Please sign in to comment.