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
AGrapeEngineimplementation that uses Aether, the dependency resolution system used by Maven.
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddRepository(org.eclipse.aether.repository.RemoteRepository repository)voidaddResolver(Map<String,Object> args)Map<String,Map<String,List<String>>>enumerateGrapes()Objectgrab(String endorsedModule)Objectgrab(Map args)Objectgrab(Map args, Map... dependencyMaps)Map[]listDependencies(ClassLoader classLoader)URI[]resolve(Map args, List depsInfo, Map... dependencyMaps)URI[]resolve(Map args, Map... dependencyMaps)
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, Map... dependencyMaps)
- Specified by:
grabin interfacegroovy.grape.GrapeEngine
addResolver
public void addResolver(Map<String,Object> args)
- Specified by:
addResolverin interfacegroovy.grape.GrapeEngine
addRepository
protected void addRepository(org.eclipse.aether.repository.RemoteRepository repository)
enumerateGrapes
public Map<String,Map<String,List<String>>> enumerateGrapes()
- Specified by:
enumerateGrapesin interfacegroovy.grape.GrapeEngine
resolve
public URI[] resolve(Map args, Map... dependencyMaps)
- Specified by:
resolvein interfacegroovy.grape.GrapeEngine
resolve
public URI[] resolve(Map args, List depsInfo, Map... dependencyMaps)
- Specified by:
resolvein interfacegroovy.grape.GrapeEngine
listDependencies
public Map[] listDependencies(ClassLoader classLoader)
- Specified by:
listDependenciesin interfacegroovy.grape.GrapeEngine