Groovy Documentation

org.gradle.api.artifacts.result
[Java] Interface ModuleVersionSelectionReason


@Incubating
public interface ModuleVersionSelectionReason

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


Method Summary
boolean isConflictResolution()

Informs whether the module was selected by conflict resolution.

boolean isForced()

Informs whether the module was forced.

 

Method Detail

isConflictResolution

public 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.


isForced

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


 

Gradle API 1.3-rc-2