org.gradle.api.artifacts.result
Interface ModuleVersionSelectionReason


@Incubating
public interface ModuleVersionSelectionReason

Answers the question why given module version was selected during the dependency resolution

Since:
1.3

Method Summary
 String getDescription()
          Describes this selection reason.
 boolean isConflictResolution()
          Informs whether the module was selected by conflict resolution.
 boolean isForced()
          Informs whether the module was forced.
 boolean isSelectedByRule()
          Informs whether the module was selected by the dependency resolve rule.
 

Method Detail

isForced

boolean isForced()
Informs whether the module was forced. Users can force modules via ResolutionStrategy or when declaring dependencies (see DependencyHandler).


isConflictResolution

boolean isConflictResolution()
Informs whether the module was selected by conflict resolution. For more information about Gradle's conflict resolution please refer to the user guide. ResolutionStrategy contains information about conflict resolution and includes means to configure it.


isSelectedByRule

boolean isSelectedByRule()
Informs whether the module was selected by the dependency resolve rule. Users can configure dependency resolve rules via ResolutionStrategy.eachDependency(org.gradle.api.Action)

Since:
1.4

getDescription

String getDescription()
Describes this selection reason.