A container of static utilities for dependency order.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.util.Set<org.gradle.api.artifacts.result.ResolvedComponentResult> |
configurationPostOrderDependencies(org.gradle.api.artifacts.Configuration configuration)Collects configuration dependencies in post-order. |
|
static java.util.Collection<java.io.File> |
configurationPostOrderFiles(org.gradle.api.artifacts.Configuration configuration)Collects configuration files in post-order. |
|
static java.util.Collection<java.io.File> |
getConfigurationFiles(org.gradle.api.file.FileCollection files, boolean sorted)Returns a set of configuration files in the tree post-order, or sorted, or in the original insert order. |
|
static java.util.Collection<java.io.File> |
getConfigurationFiles(org.gradle.api.file.FileCollection files)Returns a set of configuration files in the tree post-order or sorted. |
|
static org.gradle.api.artifacts.result.ResolvedComponentResult |
postOrderDependencies(org.gradle.api.artifacts.result.ResolvedComponentResult root, java.util.Set<org.gradle.api.artifacts.component.ComponentIdentifier> seen, java.util.Set<org.gradle.api.artifacts.result.ResolvedComponentResult> dependencies)Traverses the dependency tree post-order and collects dependencies. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Collects configuration dependencies in post-order.
configuration - Gradle configuration to work withCollects configuration files in post-order.
configuration - Gradle configuration to work withReturns a set of configuration files in the tree post-order, or sorted, or in the original insert order. Attempt to collect dependency tree post-order and fall back to sorted or insert order. If sorted is false, it will always return the original insert order.
Returns a set of configuration files in the tree post-order or sorted. Attempt to collect dependency tree post-order and fall back to sorted order.
Traverses the dependency tree post-order and collects dependencies.
The recursive post-order traversal returns the root of the (sub)tree. This allows the post-order adding into the set of dependencies as we return from the recursive calls. The set of seen dependencies ensures ensures that the cycles in Ivy metadata do not cause cycles in our recursive calls.
root - the root of the dependency (sub)treeseen - the input set of already seen dependenciesdependencies - the output set of dependencies in post-order