Package org.savantbuild.parser.groovy
Class DependenciesDelegate
java.lang.Object
org.savantbuild.parser.groovy.DependenciesDelegate
Groovy delegate that defines the dependencies.
-
Constructor Summary
ConstructorsConstructorDescriptionDependenciesDelegate(org.savantbuild.dep.domain.Dependencies dependencies, Map<String, org.savantbuild.domain.Version> semanticVersionMappings) -
Method Summary
-
Constructor Details
-
DependenciesDelegate
-
-
Method Details
-
group
public org.savantbuild.dep.domain.DependencyGroup group(Map<String, Object> attributes, @DelegatesTo(DependencyDelegate.class) groovy.lang.Closure<?> closure) Defines a group in the dependencies. This takes a Map of attributes but only thetypeattribute is required. Theexportattribute is optional. This also takes a closure that defines the dependencies.- Parameters:
attributes- The attributesclosure- The closure that defines the dependencies.- Returns:
- The dependency group object.
-