|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
@Incubating public interface DependencyResolveDetails
Provides details about a dependency when it is resolved. Provides means to manipulate dependency metadata when it is resolved.
Method Summary | |
---|---|
ModuleVersionSelector
|
getRequested()
The module, before it is resolved. |
ModuleVersionSelector
|
getTarget()
The target module selector used to resolve the dependency. |
void
|
useTarget(Object notation)
Allows to override the details of the dependency (see getTarget()) when it is resolved (see getRequested()). |
void
|
useVersion(String version)
Allows to override the version when the dependency getRequested() is resolved. |
Method Detail |
---|
public ModuleVersionSelector getRequested()
public ModuleVersionSelector getTarget()
public void useTarget(Object notation)
notation
- the notation that gets parsed into an instance of ModuleVersionSelector.
You can pass Strings like 'org.gradle:gradle-core:1.4',
Maps like [group: 'org.gradle', name: 'gradle-core', version: '1.4'],
or instances of ModuleVersionSelector.
public void useVersion(String version)
If you need to change not only the version but also group or name please use the useTarget(Object) method.
version
- to use when resolving this dependency, cannot be null.
It is valid to configure the same version as requested.
Gradle API 1.12