JetBrains / intellij-platform-plugin-template

Template repository for creating plugins for IntelliJ Platform
Apache License 2.0
3.05k stars 618 forks source link

How to specify unbounded `pluginUntilBuild` #325

Closed ragurney closed 1 year ago

ragurney commented 1 year ago

I would like to have an unbounded pluginUntilBuild so that users don't have to keep asking me to update the value when a new version of IntelliJ comes out.

How do I do this? Commenting it out or using * seem to produce an error.

ciscorucinski commented 1 year ago

https://intellij-support.jetbrains.com/hc/en-us/community/posts/360010590059/comments/4407033276562

ciscorucinski commented 1 year ago

https://github.com/JetBrains/gradle-intellij-plugin/issues/506

Trying setting pluginUntilBuild to null. Build it and then check your plugin.xml file https://github.com/ForNeVeR/file-link-executor/blob/ac1f11790b083d3ac09ea05f9bdd1cc37c23ce3b/build.gradle#L21-L22

ragurney commented 1 year ago

That doesn't seem to work using the gradle.properties file from the plugin template: https://github.com/ragurney/spotless-intellij-gradle/actions/runs/3678816635/jobs/6222523916#step:9:68

my gradle.properties:

# IntelliJ Platform Artifacts Repositories
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html

pluginGroup = com.github.ragurney.spotless
pluginName = Spotless Gradle
# SemVer format -> https://semver.org
pluginVersion = 1.0.9

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild = 211
pluginUntilBuild = null

# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
platformType = IC
platformVersion = 2021.1

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins = com.intellij.gradle

# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
javaVersion = 11

# Gradle Releases -> https://github.com/gradle/gradle/releases
gradleVersion = 7.3

# Opt-out flag for bundling Kotlin standard library.
# See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details.
# suppress inspection "UnusedProperty"
kotlin.stdlib.default.dependency = false
ragurney commented 1 year ago

I ended up changing the build.gradle file directly.

YannCebron commented 1 year ago

pluginUntilBuild= should do it