Class MavenResolverGrapeEngine

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

public class MavenResolverGrapeEngine extends Object implements groovy.grape.GrapeEngine
A GrapeEngine implementation that uses Maven Resolver, the dependency resolution system used by Maven.
Since:
2.5.9
Author:
Andy Wilkinson, Phillip Webb
  • Constructor Details

    • MavenResolverGrapeEngine

      public MavenResolverGrapeEngine(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 Details

    • 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