Class DependenciesDelegate

java.lang.Object
org.savantbuild.parser.groovy.DependenciesDelegate

public class DependenciesDelegate extends Object
Groovy delegate that defines the dependencies.
  • Constructor Details

    • DependenciesDelegate

      public DependenciesDelegate(org.savantbuild.dep.domain.Dependencies dependencies, Map<String,org.savantbuild.domain.Version> semanticVersionMappings)
  • 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 the type attribute is required. The export attribute is optional. This also takes a closure that defines the dependencies.
      Parameters:
      attributes - The attributes
      closure - The closure that defines the dependencies.
      Returns:
      The dependency group object.