Skip to content

Commit

Permalink
Add a PluginVerification ide() overload that takes a useInstaller Boo…
Browse files Browse the repository at this point in the history
…lean provider
  • Loading branch information
abrooksv committed Jan 22, 2025
1 parent fb2c847 commit 01d8b10
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [next]

### Added

- Add `ide(type: Provider<*>, version: Provider<String>, useInstaller: Provider<Boolean>)` overload to the `pluginVerification.ides` block.

### Fixed

- Fixed the broken path resolution in the ` bundledLibrary` helper and the `TestFrameworkType.Bundled` test framework
Expand Down
1 change: 1 addition & 0 deletions api/IntelliJPlatformGradlePlugin.api
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,7 @@ public abstract class org/jetbrains/intellij/platform/gradle/extensions/IntelliJ
public final fun ide (Ljava/lang/String;Ljava/lang/String;Z)V
public final fun ide (Lorg/gradle/api/provider/Provider;)V
public final fun ide (Lorg/gradle/api/provider/Provider;Lorg/gradle/api/provider/Provider;)V
public final fun ide (Lorg/gradle/api/provider/Provider;Lorg/gradle/api/provider/Provider;Lorg/gradle/api/provider/Provider;)V
public final fun ide (Lorg/gradle/api/provider/Provider;Lorg/gradle/api/provider/Provider;Z)V
public final fun ide (Lorg/jetbrains/intellij/platform/gradle/IntelliJPlatformType;Ljava/lang/String;)V
public final fun ide (Lorg/jetbrains/intellij/platform/gradle/IntelliJPlatformType;Ljava/lang/String;Z)V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,20 @@ abstract class IntelliJPlatformExtension @Inject constructor(
configurationName = Configurations.INTELLIJ_PLUGIN_VERIFIER_IDES_DEPENDENCY,
)

/**
* Adds a dependency to a binary IDE release to be used for testing with the IntelliJ Plugin Verifier.
*
* @param type The provider for the type of the IntelliJ Platform dependency. Accepts either [IntelliJPlatformType] or [String].
* @param version The provider for the version of the IntelliJ Platform dependency.
* @param useInstaller Switches between the IDE installer and archive from the IntelliJ Maven repository.
*/
fun ide(type: Provider<*>, version: Provider<String>, useInstaller: Provider<Boolean>) = dependenciesHelper.addIntelliJPlatformDependency(
typeProvider = type,
versionProvider = version,
useInstallerProvider = useInstaller,
configurationName = Configurations.INTELLIJ_PLUGIN_VERIFIER_IDES_DEPENDENCY,
)

/**
* Adds a dependency to a binary IDE release to be used for testing with the IntelliJ Plugin Verifier.
*
Expand Down

0 comments on commit 01d8b10

Please sign in to comment.