create

Creates and configures an instance of IntelliJPlatformDependencyConfiguration and adds an IntelliJ Platform dependency based on the provided configuration.

Parameters

configure

IntelliJ Platform dependency configuration.


fun create(type: Any, version: String, configure: IntelliJPlatformDependencyConfiguration.() -> Unit = {})
fun create(type: Any, version: Provider<String>, configure: IntelliJPlatformDependencyConfiguration.() -> Unit = {})
fun create(type: Provider<*>, version: Provider<String>, configure: IntelliJPlatformDependencyConfiguration.() -> Unit = {})

Adds a dependency on the IntelliJ Platform.

Parameters

type

The type of the IntelliJ Platform dependency.

version

The version of the IntelliJ Platform dependency.

configure

IntelliJ Platform dependency configuration.


@JvmName(name = "createFromStringProvider")
fun create(provider: Provider<String>, configure: IntelliJPlatformDependencyConfiguration.(String) -> Unit)

Adds a dependency on the IntelliJ Platform using a Provider.

Parameters

provider

The provider of an item to be mapped to the IntelliJ Platform dependency.

configure

The configuration block to be applied to each created IntelliJPlatformDependencyConfiguration.


fun create(provider: Provider<List<String>>, configure: IntelliJPlatformDependencyConfiguration.(String) -> Unit = { notation -> val (type, version) = notation.parseIdeNotation() this.type = type this.version = version })

Adds multiple dependencies on the IntelliJ Platform using a Provider.

Parameters

provider

The provider of a collection of items to be mapped to the IntelliJ Platform dependencies.

configure

The configuration block to be applied to each created IntelliJPlatformDependencyConfiguration.