Package org.gradle.api.artifacts.maven
Class Conf2ScopeMapping
- java.lang.Object
-
- org.gradle.api.artifacts.maven.Conf2ScopeMapping
-
public class Conf2ScopeMapping extends Object
An immutable mapping to map a dependency configuration to a Maven scope. This class has implemented equality and hashcode based on its values not on object identity.- See Also:
Conf2ScopeMappingContainer
-
-
Constructor Summary
Constructors Constructor Description Conf2ScopeMapping(Integer priority, Configuration configuration, String scope)Constructs aConf2ScopeMapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ConfigurationgetConfiguration()Returns the dependency configuration name.IntegergetPriority()Returns the priority.StringgetScope()Returns the Maven scope name.inthashCode()
-
-
-
Constructor Detail
-
Conf2ScopeMapping
public Conf2ScopeMapping(Integer priority, Configuration configuration, String scope)
Constructs aConf2ScopeMapping.- Parameters:
priority- The priority of this mappingconfiguration- The configuration namescope- The Maven scope name
-
-
Method Detail
-
getPriority
public Integer getPriority()
Returns the priority.
-
getConfiguration
public Configuration getConfiguration()
Returns the dependency configuration name.
-
getScope
public String getScope()
Returns the Maven scope name.
-
-