plugins { id("java") id("org.jetbrains.kotlin.jvm") version "1.7.20" id("org.jetbrains.intellij") version "1.10.1" } group = "com.example" version = "1.0-SNAPSHOT" repositories { mavenCentral() maven { url = uri("https://jitpack.io") content { // only allowed to pull lsp4intellij includeModule("com.github.ballerina-platform", "lsp4intellij") } } } // Configure Gradle IntelliJ Plugin // Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html intellij { version.set("2022.1.4") type.set("IC") // Target IDE Platform plugins.set(listOf(/* Plugin Dependencies */)) } dependencies { // Hardcoded to 0.95.0 because 0.95.1 has problems with text documents being sent implementation("com.github.ballerina-platform:lsp4intellij:0.95.0") } tasks { // Set the JVM compatibility versions withType { sourceCompatibility = "11" targetCompatibility = "11" } withType { kotlinOptions.jvmTarget = "11" } patchPluginXml { sinceBuild.set("221") untilBuild.set("231.*") } signPlugin { certificateChain.set(System.getenv("CERTIFICATE_CHAIN")) privateKey.set(System.getenv("PRIVATE_KEY")) password.set(System.getenv("PRIVATE_KEY_PASSWORD")) } publishPlugin { token.set(System.getenv("PUBLISH_TOKEN")) } }