Package org.gradle.api.plugins.jvm
Class PlatformDependencyModifiers.EnforcedPlatformDependencyModifier
java.lang.Object
org.gradle.api.artifacts.dsl.DependencyModifier
org.gradle.api.plugins.jvm.PlatformDependencyModifiers.EnforcedPlatformDependencyModifier
- Enclosing interface:
- PlatformDependencyModifiers
@Incubating
public abstract static class PlatformDependencyModifiers.EnforcedPlatformDependencyModifier
extends DependencyModifier
Implementation for the enforced platform dependency modifier.
- Since:
- 8.0
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract ObjectFactoryInjected service to create named objects.protected voidmodifyImplementation(ModuleDependency dependency) Modify the given dependency.Methods inherited from class org.gradle.api.artifacts.dsl.DependencyModifiergetDependencyFactory, modify, modify, modify, modify
- 
Constructor Details- 
EnforcedPlatformDependencyModifierpublic EnforcedPlatformDependencyModifier()
 
- 
- 
Method Details- 
getObjectFactoryInjected service to create named objects.- Returns:
- injected service
- Implementation Requirements:
- Do not implement this method. Gradle generates the implementation automatically.
 
- 
modifyImplementationModify the given dependency. Selects the enforced platform variant of the given dependency.- Specified by:
- modifyImplementationin class- DependencyModifier
- Parameters:
- dependency- the dependency to modify
 
 
-