May I ask how to set an unlimited limit

However, the version Range is Compatibility Range 202-221.*,

  • What I expect is unlimited

This is my build.gradle.kts

plugins {
    id("java")
    id("org.jetbrains.intellij") version "1.5.2"
}

group = "com.lxd"
version = "3.0.3"

repositories {
    maven {
        url = uri("https://maven.aliyun.com/repository/public")
    }
}

// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
    version.set("2022.1")
    type.set("IC") // Target IDE Platform

    plugins.set(listOf(/* Plugin Dependencies */))
}

tasks {
    // Set the JVM compatibility versions
    withType<JavaCompile> {
        sourceCompatibility = "11"
        targetCompatibility = "11"
    }

    patchPluginXml {
        sinceBuild.set("202")
    }

    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"))
    }
}

EDIT: didn’t realize your build file is 1.X, this solution is for 2.X

That can be done with the patchPluginXml task

    patchPluginXml {
	    sinceBuild = "2022.1"
	    untilBuild = provider { null }
    }

See the patchPluginXml task documentation

2 Likes

The Gradle IntelliJ Plugin 1.x is no longer supported and may not work correctly when targeting newer IntelliJ Platform releases.
Please migrate to IntelliJ Platform Gradle Plugin 2.x ASAP.

Also, the upcoming 2.6.0 release will have an open until-build property by default, so no extra operation will be required.

First of all, thank you for your reply. Secondly, I set untilBuild.set(provider{null}). Why did the number of versions in the verification result decrease significantly

Thank you for your reply. After upgrading to version 2.x, many grammars have changed. Is there any documentation where you can see the mapping of the api of version 1.x to the api of version 2.x

See Migrating from Gradle IntelliJ Plugin (1.x) | IntelliJ Platform Plugin SDK