Package org.gradle.api.plugins.jvm
Class PlatformDependencyModifiers.PlatformDependencyModifier
java.lang.Object
org.gradle.api.artifacts.dsl.DependencyModifier
org.gradle.api.plugins.jvm.PlatformDependencyModifiers.PlatformDependencyModifier
- Enclosing interface:
- PlatformDependencyModifiers
@Incubating
public abstract static class PlatformDependencyModifiers.PlatformDependencyModifier
extends DependencyModifier
Implementation for the platform dependency modifier.
- Since:
- 8.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectFactory
Injected service to create named objects.protected void
modifyImplementation
(ModuleDependency dependency) Modify the given dependency.Methods inherited from class org.gradle.api.artifacts.dsl.DependencyModifier
getDependencyFactory, modify, modify, modify, modify
-
Constructor Details
-
PlatformDependencyModifier
public PlatformDependencyModifier()
-
-
Method Details
-
getObjectFactory
Injected service to create named objects.- Returns:
- injected service
- Implementation Requirements:
- Do not implement this method. Gradle generates the implementation automatically.
-
modifyImplementation
Modify the given dependency. Selects the platform variant of the given dependency.- Specified by:
modifyImplementation
in classDependencyModifier
- Parameters:
dependency
- the dependency to modify
-