org.springframework.boot.cli.compiler.grape

Class AetherGrapeEngine

  • java.lang.Object
    • org.springframework.boot.cli.compiler.grape.AetherGrapeEngine
  • All Implemented Interfaces:
    groovy.grape.GrapeEngine


    public class AetherGrapeEngine
    extends Object
    implements groovy.grape.GrapeEngine
    A GrapeEngine implementation that uses Aether, the dependency resolution system used by Maven.
    Author:
    Andy Wilkinson, Phillip Webb
    • Constructor Detail

      • AetherGrapeEngine

        public AetherGrapeEngine(groovy.lang.GroovyClassLoader classLoader,
                                 org.eclipse.aether.RepositorySystem repositorySystem,
                                 org.eclipse.aether.DefaultRepositorySystemSession repositorySystemSession,
                                 List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories,
                                 DependencyResolutionContext resolutionContext,
                                 boolean quiet)
    • Method Detail

      • grab

        public Object grab(Map args)
        Specified by:
        grab in interface groovy.grape.GrapeEngine
      • grab

        public Object grab(Map args,
                           Map... dependencyMaps)
        Specified by:
        grab in interface groovy.grape.GrapeEngine
      • addResolver

        public void addResolver(Map<String,Object> args)
        Specified by:
        addResolver in interface groovy.grape.GrapeEngine
      • addRepository

        protected void addRepository(org.eclipse.aether.repository.RemoteRepository repository)
      • enumerateGrapes

        public Map<String,Map<String,List<String>>> enumerateGrapes()
        Specified by:
        enumerateGrapes in interface groovy.grape.GrapeEngine
      • resolve

        public URI[] resolve(Map args,
                             Map... dependencyMaps)
        Specified by:
        resolve in interface groovy.grape.GrapeEngine
      • resolve

        public URI[] resolve(Map args,
                             List depsInfo,
                             Map... dependencyMaps)
        Specified by:
        resolve in interface groovy.grape.GrapeEngine
      • listDependencies

        public Map[] listDependencies(ClassLoader classLoader)
        Specified by:
        listDependencies in interface groovy.grape.GrapeEngine
      • grab

        public Object grab(String endorsedModule)
        Specified by:
        grab in interface groovy.grape.GrapeEngine