with Dependencies
Execute the given action before the configuration first participates in dependency resolution. A Configuration
will participate in dependency resolution when:
- The Configuration itself is resolved
- Another Configuration that extends this one is resolved
- Another Configuration that references this one as a project dependency is resolved
configurations { conf }
configurations['conf'].withDependencies { dependencies ->
dependencies.each { dependency ->
if (dependency.version == null) {
dependency.version { require '1.0' }
}
}
}
Content copied to clipboard
Since
4.4
Return
this
Parameters
action
a dependency action to execute before the configuration is used.