Package org.gradle.api.plugins.jvm
Interface PlatformDependencyModifiers
- All Known Subinterfaces:
JvmComponentDependencies
Dependency modifier APIs that can find platform and enforced platforms in other modules for
dependencies
blocks.- Since:
- 8.0
- API Note:
- This interface is intended to be used to mix-in methods that modify dependencies into the DSL.
- Implementation Requirements:
- The default implementation of all methods should not be overridden.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Implementation for the enforced platform dependency modifier.static class
Implementation for the platform dependency modifier. -
Method Summary
Modifier and TypeMethodDescriptionA dependency modifier that can modify a dependency to select an enforced platform variant.A dependency modifier that can modify a dependency to select a platform variant.
-
Method Details
-
getPlatform
PlatformDependencyModifiers.PlatformDependencyModifier getPlatform()A dependency modifier that can modify a dependency to select a platform variant.- Returns:
- the dependency modifier
- See Also:
- Implementation Requirements:
- Do not implement this method. Gradle generates the implementation automatically.
-
getEnforcedPlatform
PlatformDependencyModifiers.EnforcedPlatformDependencyModifier getEnforcedPlatform()A dependency modifier that can modify a dependency to select an enforced platform variant.- Returns:
- the dependency modifier
- See Also:
- Implementation Requirements:
- Do not implement this method. Gradle generates the implementation automatically.
-