Class 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.
    • 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)
      • 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
      • grab

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