Package org.savantbuild.parser.groovy
Class DependencyDelegate
java.lang.Object
org.savantbuild.parser.groovy.DependencyDelegate
Groovy delegate that defines the dependencies.
-
Constructor Summary
ConstructorsConstructorDescriptionDependencyDelegate(org.savantbuild.dep.domain.DependencyGroup group, Map<String, org.savantbuild.domain.Version> semanticVersionMappings) -
Method Summary
Modifier and TypeMethodDescriptionorg.savantbuild.dep.domain.Artifactdependency(Map<String, Object> attributes) Defines a dependency without exclusion by callingdependency(Map, Closure)with null for the closure.org.savantbuild.dep.domain.Artifactdependency(Map<String, Object> attributes, groovy.lang.Closure<?> closure) Defines a dependency.
-
Constructor Details
-
DependencyDelegate
-
-
Method Details
-
dependency
Defines a dependency without exclusion by callingdependency(Map, Closure)with null for the closure.- Parameters:
attributes- The attributes.- Returns:
- The dependency object.
- See Also:
-
Artifact(String)
-
dependency
public org.savantbuild.dep.domain.Artifact dependency(Map<String, Object> attributes, @DelegatesTo(ExclusionDelegate.class) groovy.lang.Closure<?> closure) Defines a dependency. This takes a Map of attributes but only theidattributes is required. This attribute defines the dependency (as a String). Theoptionalattribute is optional and defines if the dependency is optional.- Parameters:
attributes- The attributes.closure- The exclusion delegate if one was provided.- Returns:
- The dependency object.
- See Also:
-
Artifact(String)
-