# PlatformDependencyModifiers

API Documentation: | `PlatformDependencyModifiers`

Known Subtypes: |
`JvmComponentDependencies`

Note: This class is incubating and may change in a future version of Gradle.

Dependency APIs for using Platforms in `dependencies` blocks.

NOTE: This API is incubating and is likely to change until it's made stable.

### Properties

No properties

### Methods

Method | Description
`enforcedPlatform(dependency)` | Incubating Takes a given `ModuleDependency` and modifies it to select the Enforced Platform variant of the given module.
`enforcedPlatform(dependencyNotation)` | Incubating Create an `ExternalModuleDependency` from the given notation and modifies it to select the Enforced Platform variant of the given module.
`enforcedPlatform(providerToDependency)` | Incubating Takes a given `Provider` to a `ModuleDependency` and modifies the dependency to select the Enforced Platform variant of the given module.
`enforcedPlatform(providerConvertibleToDependency)` | Incubating Takes a given `Provider` to a `MinimalExternalModuleDependency` and modifies the dependency to select the Enforced Platform variant of the given module.
`module(dependencyNotation)` | Incubating Create an `ExternalModuleDependency` from the given notation.
`module(group, name, version)` | Incubating Create an `ExternalModuleDependency` from a series of strings.
`platform(dependency)` | Incubating Takes a given `ModuleDependency` and modifies it to select the Platform variant of the given module.
`platform(dependencyNotation)` | Incubating Create an `ExternalModuleDependency` from the given notation and modifies it to select the Platform variant of the given module.
`platform(providerToDependency)` | Incubating Takes a given `Provider` to a `ModuleDependency` and modifies the dependency to select the Platform variant of the given module.
`platform(providerConvertibleToDependency)` | Incubating Takes a given `Provider` to a `MinimalExternalModuleDependency` and modifies the dependency to select the Platform variant of the given module.
`project()` | Incubating Returns the current project as a `ProjectDependency`.
`project(projectPath)` | Incubating Converts an absolute or relative path to a project into a `ProjectDependency`. Project paths are separated by colons. This method fails if the project cannot be found.

### Script blocks

No script blocks

### Method details

#### `D` `enforcedPlatform`(`D` dependency)

Note: This method is incubating and may change in a future version of Gradle.

Takes a given `ModuleDependency` and modifies it to select the Enforced Platform variant of the given module.

#### `ExternalModuleDependency` `enforcedPlatform`(`CharSequence` dependencyNotation)

Note: This method is incubating and may change in a future version of Gradle.

Create an `ExternalModuleDependency` from the given notation and modifies it to select the Enforced Platform variant of the given module.

#### ``Provider`<`D`>` `enforcedPlatform`(``Provider`<`D`>` providerToDependency)

Note: This method is incubating and may change in a future version of Gradle.

Takes a given `Provider` to a `ModuleDependency` and modifies the dependency to select the Enforced Platform variant of the given module.

#### ``Provider`<? extends `MinimalExternalModuleDependency`>` `enforcedPlatform`(``ProviderConvertible`<? extends `MinimalExternalModuleDependency`>` providerConvertibleToDependency)

Note: This method is incubating and may change in a future version of Gradle.

Takes a given `Provider` to a `MinimalExternalModuleDependency` and modifies the dependency to select the Enforced Platform variant of the given module.

#### `ExternalModuleDependency` `module`(`CharSequence` dependencyNotation)

Note: This method is incubating and may change in a future version of Gradle.

Create an `ExternalModuleDependency` from the given notation.

#### `ExternalModuleDependency` `module`(`String` group, `String` name, `String` version)

Note: This method is incubating and may change in a future version of Gradle.

Create an `ExternalModuleDependency` from a series of strings.

#### `D` `platform`(`D` dependency)

Note: This method is incubating and may change in a future version of Gradle.

Takes a given `ModuleDependency` and modifies it to select the Platform variant of the given module.

#### `ExternalModuleDependency` `platform`(`CharSequence` dependencyNotation)

Note: This method is incubating and may change in a future version of Gradle.

Create an `ExternalModuleDependency` from the given notation and modifies it to select the Platform variant of the given module.

#### ``Provider`<`D`>` `platform`(``Provider`<`D`>` providerToDependency)

Note: This method is incubating and may change in a future version of Gradle.

Takes a given `Provider` to a `ModuleDependency` and modifies the dependency to select the Platform variant of the given module.

#### ``Provider`<? extends `MinimalExternalModuleDependency`>` `platform`(``ProviderConvertible`<? extends `MinimalExternalModuleDependency`>` providerConvertibleToDependency)

Note: This method is incubating and may change in a future version of Gradle.

Takes a given `Provider` to a `MinimalExternalModuleDependency` and modifies the dependency to select the Platform variant of the given module.

#### `ProjectDependency` `project`()

Note: This method is incubating and may change in a future version of Gradle.

Returns the current project as a `ProjectDependency`.

#### `ProjectDependency` `project`(`String` projectPath)

Note: This method is incubating and may change in a future version of Gradle.

Converts an absolute or relative path to a project into a `ProjectDependency`. Project paths are separated by colons. This method fails if the project cannot be found.