Skip to content

Commit

Permalink
Make Intellij plugin support 2024.1 version
Browse files Browse the repository at this point in the history
Some minor fixes in build files
  • Loading branch information
Harald Musum committed Apr 11, 2024
1 parent 0350594 commit 60d8961
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions integration/intellij/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,21 @@ plugins {
}

group="ai.vespa"
version="1.6.0" // Also update pom.xml version AND the version below if this is changed
version="1.6.1" // Also update pom.xml version AND the version below if this is changed

defaultTasks("buildPlugin")

apply(plugin="org.jetbrains.grammarkit")

task<GenerateLexerTask>("generateSdLexer") {
sourceFile.set(file("src/main/jflex/ai/vespa/intellij/schema/lexer/sd.flex"))
targetDir.set("target/generated-sources/jflex/ai/vespa/intellij/schema/lexer/")
targetClass.set("SdLexer")
targetOutputDir.set(file("target/generated-sources/jflex/ai/vespa/intellij/schema/lexer/"))
purgeOldFiles.set(true)
}

task<GenerateParserTask>("generateSdParser") {
sourceFile.set(file("src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf"))
targetRoot.set("target/generated-sources/bnf/")
targetRootOutputDir.set(file("target/generated-sources/bnf/"))
pathToParser.set("ai/vespa/intellij/schema/parser/SdParser.java")
pathToPsiRoot.set("ai/vespa/intellij/schema/parser/psi/")
purgeOldFiles.set(true)
Expand All @@ -43,7 +42,7 @@ sourceSets {

// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version.set("2023.3")
version.set("2024.1")
}

tasks {
Expand All @@ -55,12 +54,10 @@ tasks {
}

patchPluginXml {
version.set("1.6.0") // Keep in sync with pom.xml TODO: Use one version property
version.set("1.6.1") // Keep in sync with pom.xml TODO: Use one version property
// Appears on the plugin page in preferences/plugins
changeNotes.set("""
Updated Vespa icon
Support for IntelliJ 2023.3
Compatibility with all JetBrains IDEs
Support for IntelliJ 2024.1
""")
}

Expand Down
2 changes: 1 addition & 1 deletion integration/intellij/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<relativePath>../parent/pom.xml</relativePath>
</parent>
<artifactId>vespa-intellij</artifactId> <!-- Not used - plugin is build by gradle -->
<version>1.6.0</version> <!-- See copy-zip below, which depends on this being the same as the v. in build.gradle.kts -->
<version>1.6.1</version> <!-- See copy-zip below, which depends on this being the same as the v. in build.gradle.kts -->
<description>
Maven wrapper for the gradle build of this IntelliJ plugin.
</description>
Expand Down

0 comments on commit 60d8961

Please sign in to comment.