IntelliJPlatformDependenciesExtension

abstract class IntelliJPlatformDependenciesExtension @Inject constructor(configurations: ConfigurationContainer, dependencies: DependencyHandler, layout: ProjectLayout, objects: ObjectFactory, providers: ProviderFactory, resources: ResourceHandler, rootProjectDirectory: Path)

Extension class for managing IntelliJ Platform dependencies in a Gradle build script applied to the DependencyHandler.

This class provides methods for adding dependencies to different IntelliJ Platform products and managing local dependencies. It also includes methods for adding JetBrains Runtime, IntelliJ Platform plugins, IntelliJ Platform bundled plugins, IntelliJ Plugin Verifier, and Marketplace ZIP Signer.

Parameters

configurations

The Gradle ConfigurationContainer to manage configurations.

dependencies

The Gradle DependencyHandler to manage dependencies.

layout

The Gradle ProjectLayout to manage layout providers.

objects

The Gradle ObjectFactory used for creating objects.

providers

The Gradle ProviderFactory used for creating providers.

resources

The Gradle ResourceHandler used for managing resources.

rootProjectDirectory

The root directory of the Gradle project.

Constructors

Link copied to clipboard
@Inject
constructor(configurations: ConfigurationContainer, dependencies: DependencyHandler, layout: ProjectLayout, objects: ObjectFactory, providers: ProviderFactory, resources: ResourceHandler, rootProjectDirectory: Path)

Types

Link copied to clipboard

Functions

Link copied to clipboard
fun androidStudio(version: String, useInstaller: Boolean = true)
fun androidStudio(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on Android Studio.

Link copied to clipboard
fun aqua(version: String, useInstaller: Boolean = true)
fun aqua(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on Aqua.

Link copied to clipboard
fun bundledLibrary(path: Provider<String>)

Adds a dependency on a Jar bundled within the current IntelliJ Platform.

Link copied to clipboard
fun bundledPlugin(id: Provider<String>)

Adds a dependency on a bundled IntelliJ Platform plugin.

Link copied to clipboard
fun bundledPlugins(vararg ids: String)
fun bundledPlugins(ids: Provider<List<String>>)

Adds dependencies on bundled IntelliJ Platform plugins.

Link copied to clipboard
fun clion(version: String, useInstaller: Boolean = true)
fun clion(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on CLion.

Link copied to clipboard
fun create(notation: String, useInstaller: Boolean = true)
fun create(notation: Provider<String>, useInstaller: Boolean = true)
fun create(type: String, version: String, useInstaller: Boolean = true)
fun create(type: String, version: Provider<String>, useInstaller: Boolean = true)
fun create(type: Provider<*>, version: String, useInstaller: Boolean = true)
fun create(type: Provider<*>, version: Provider<String>, useInstaller: Boolean = true)
fun create(type: Provider<*>, version: Provider<String>, useInstaller: Provider<Boolean>)
fun create(type: IntelliJPlatformType, version: String, useInstaller: Boolean = true)
fun create(type: IntelliJPlatformType, version: Provider<String>, useInstaller: Boolean = true)
fun create(type: Provider<*>, version: Provider<String>, useInstaller: Boolean = true, configurationName: String)

Adds a dependency on the IntelliJ Platform.

Link copied to clipboard
fun datagrip(version: String, useInstaller: Boolean = true)
fun datagrip(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on DataGrip.

Link copied to clipboard
fun dataspell(version: String, useInstaller: Boolean = true)
fun dataspell(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on DataSpell.

Link copied to clipboard
fun fleetBackend(version: String, useInstaller: Boolean = true)
fun fleetBackend(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on Fleet Backend.

Link copied to clipboard
fun gateway(version: String, useInstaller: Boolean = true)
fun gateway(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on Gateway.

Link copied to clipboard
fun goland(version: String, useInstaller: Boolean = true)
fun goland(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on GoLand.

Link copied to clipboard

Applies a set of dependencies required for running the InstrumentCodeTask task.

Link copied to clipboard
fun intellijIdeaCommunity(version: String, useInstaller: Boolean = true)
fun intellijIdeaCommunity(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on IntelliJ IDEA Community.

Link copied to clipboard
fun intellijIdeaUltimate(version: String, useInstaller: Boolean = true)
fun intellijIdeaUltimate(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on IntelliJ IDEA Ultimate.

Link copied to clipboard
fun javaCompiler(version: String = Constraints.CLOSEST_VERSION)
fun javaCompiler(version: Provider<String>)

Adds a Java Compiler dependency for code instrumentation.

Link copied to clipboard

Adds a dependency on JetBrains Runtime. The version is calculated using the current IntelliJ Platform.

fun jetbrainsRuntime(version: String, variant: String? = null, architecture: String? = null)
fun jetbrainsRuntime(version: Provider<String>, variant: Provider<String>, architecture: Provider<String>)

Adds a local dependency on JetBrains Runtime.

Link copied to clipboard
fun jetbrainsRuntimeExplicit(explicitVersion: String)
fun jetbrainsRuntimeExplicit(explicitVersion: Provider<String>)

Adds a dependency on JetBrains Runtime.

Link copied to clipboard
fun jetbrainsRuntimeLocal(localPath: Path)
fun jetbrainsRuntimeLocal(localPath: Directory)
fun jetbrainsRuntimeLocal(localPath: Provider<*>)

Adds a dependency on JetBrains Runtime local instance.

Link copied to clipboard
fun local(localPath: File)
fun local(localPath: String)
fun local(localPath: Directory)
fun local(localPath: Provider<*>)
fun local(localPath: Provider<*>, configurationName: String)

Adds a local dependency on a local IntelliJ Platform instance.

Link copied to clipboard
fun localPlugin(localPath: File)
fun localPlugin(localPath: String)
fun localPlugin(dependency: ProjectDependency): Boolean
fun localPlugin(localPath: Directory)
fun localPlugin(localPath: Provider<*>)

Adds a dependency on a local IntelliJ Platform plugin.

Link copied to clipboard
fun mps(version: String, useInstaller: Boolean = true)
fun mps(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on MPS.

Link copied to clipboard
fun phpstorm(version: String, useInstaller: Boolean = true)
fun phpstorm(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on PhpStorm.

Link copied to clipboard
fun platformDependency(coordinates: Coordinates, version: String = Constraints.CLOSEST_VERSION, configurationName: String = Configurations.INTELLIJ_PLATFORM_DEPENDENCIES)
fun platformDependency(coordinates: Coordinates, version: Provider<String>, configurationName: String = Configurations.INTELLIJ_PLATFORM_DEPENDENCIES)

Adds a dependency on the test-framework library or its variant, required for testing plugins.

Link copied to clipboard
fun plugin(notation: String)
fun plugin(notation: Provider<String>)

Adds a dependency on a plugin for IntelliJ Platform using a string notation, in the following formats:

fun plugin(id: String, version: String, group: String = Dependencies.MARKETPLACE_GROUP)
fun plugin(id: Provider<String>, version: Provider<String>, group: Provider<String>)

Adds a dependency on a plugin for IntelliJ Platform.

Link copied to clipboard
fun pluginModule(dependency: Dependency?): Boolean?

Adds dependency on a module to be merged into the main plugin Jar archive by ComposedJarTask.

Link copied to clipboard
fun plugins(vararg notations: String)
fun plugins(notations: List<String>)
fun plugins(notations: Provider<List<String>>)

Adds dependencies on a plugin for IntelliJ Platform using a string notation, in the following formats:

Link copied to clipboard
fun pluginVerifier(version: String = Constraints.LATEST_VERSION)
fun pluginVerifier(version: Provider<String>)

Adds a dependency on IntelliJ Plugin Verifier.

Link copied to clipboard
fun pycharmCommunity(version: String, useInstaller: Boolean = true)
fun pycharmCommunity(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on PyCharm Community.

Link copied to clipboard
fun pycharmProfessional(version: String, useInstaller: Boolean = true)
fun pycharmProfessional(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on PyCharm Professional.

Link copied to clipboard
fun rider(version: String, useInstaller: Boolean = true)
fun rider(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on Rider.

Link copied to clipboard
fun rubymine(version: String, useInstaller: Boolean = true)
fun rubymine(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on RubyMine.

Link copied to clipboard
fun rustRover(version: String, useInstaller: Boolean = true)
fun rustRover(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on Rust Rover.

Link copied to clipboard
fun testFramework(type: TestFrameworkType, version: String = Constraints.CLOSEST_VERSION, configurationName: String = Configurations.INTELLIJ_PLATFORM_TEST_DEPENDENCIES)

Adds a dependency on the test-framework library or its variant, required for testing plugins.

fun testFramework(type: TestFrameworkType, version: Provider<String>, configurationName: String = Configurations.INTELLIJ_PLATFORM_TEST_DEPENDENCIES)

Adds a dependency on the test-framework library required for testing plugins.

Link copied to clipboard
fun testPlatformDependency(coordinates: Coordinates, version: String = Constraints.CLOSEST_VERSION, configurationName: String = Configurations.INTELLIJ_PLATFORM_TEST_DEPENDENCIES)
fun testPlatformDependency(coordinates: Coordinates, version: Provider<String>, configurationName: String = Configurations.INTELLIJ_PLATFORM_TEST_DEPENDENCIES)

Adds a dependency on the test-framework library or its variant, required for testing plugins.

Link copied to clipboard
fun webstorm(version: String, useInstaller: Boolean = true)
fun webstorm(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on WebStorm.

Link copied to clipboard
fun writerside(version: String, useInstaller: Boolean = true)
fun writerside(version: Provider<String>, useInstaller: Boolean = true)

Adds a dependency on Writerside.

Link copied to clipboard
fun zipSigner(version: String = Constraints.LATEST_VERSION)
fun zipSigner(version: Provider<String>)

Adds a dependency on Marketplace ZIP Signer.