Skip to content

Commit 8f3e328

Browse files
committed
Gradle: clarify unlimited 'untilBuild'
1 parent 7bd6f91 commit 8f3e328

File tree

2 files changed

+32
-7
lines changed

2 files changed

+32
-7
lines changed

topics/appendix/tools/intellij_platform_gradle_plugin/tools_intellij_platform_gradle_plugin_extension.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,37 @@ The provided value is used for the `<idea-version until-build=""/>` element attr
646646

647647
The default value is set to the `MAJOR.*` version based on the currently selected IntelliJ Platform, such as `233.*`.
648648

649-
The `until-build` attribute can be unset by setting `provider { null }` as a value.
650-
Note that passing only `null` will make Gradle use a default value instead.
649+
The `until-build` attribute can be unset by providing `provider { null }` as a value:
650+
651+
<tabs group="languages">
652+
<tab title="Kotlin" group-key="kotlin">
653+
654+
```kotlin
655+
intellijPlatform {
656+
pluginConfiguration {
657+
ideaVersion {
658+
untilBuild = provider { null }
659+
}
660+
}
661+
}
662+
```
663+
664+
</tab>
665+
666+
<tab title="Groovy" group-key="groovy">
667+
668+
```groovy
669+
intellijPlatform {
670+
pluginConfiguration {
671+
ideaVersion {
672+
untilBuild = provider { null }
673+
}
674+
}
675+
}
676+
```
677+
678+
</tab>
679+
</tabs>
651680

652681
{style="narrow"}
653682
Type

topics/appendix/tools/intellij_platform_gradle_plugin/tools_intellij_platform_gradle_plugin_tasks.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -709,17 +709,13 @@ Default value
709709
{#patchPluginXml-untilBuild}
710710

711711
The highest IDE version compatible with the plugin.
712-
The `until-build` attribute can be unset by setting `provider { null }` as a value, and note that only passing `null` will make Gradle use the default value instead.
712+
The `until-build` attribute can be unset by setting `provider { null }` as a value.
713713
However, if `until-build` is undefined, compatibility with all the IDEs since the version specified by the `since-build` is assumed, which can cause incompatibility errors in future builds.
714714

715715
The provided value will be assigned to the [`<idea-version until-build="..."/>`](plugin_configuration_file.md#idea-plugin__idea-version) element attribute.
716716

717717
The `until-build` attribute can be unset by setting `provider { null }` as a value.
718718

719-
> Passing `null` will make Gradle use the default value instead.
720-
>
721-
{style="warning"}
722-
723719
{style="narrow"}
724720
Type
725721
: `Property<String>`

0 commit comments

Comments
 (0)