Groovy Documentation

org.codehaus.groovy.grails.resolve
[Java] Interface DependencyManager


public interface DependencyManager

General interface for all dependency manager implementations to implement with common utility methods not tied to Ivy or Aether or any dependency resolution engine

Authors:
Graeme Rocher
Since:
2.3


Field Summary
java.lang.String GRAILS_CENTRAL_PLUGIN_LIST

URL to the central Grails plugin repository's global plugin list

 
Method Summary
DependencyManager createCopy(BuildSettings buildSettings)

Creates a copy of this dependency manager with repository configuration retained but dependencies omitted.

groovy.util.slurpersupport.GPathResult downloadPluginInfo(java.lang.String pluginName, java.lang.String pluginVersion)

Downloads information about a plugin from the -plugin.xml file

groovy.util.slurpersupport.GPathResult downloadPluginList(java.io.File localFile)

Downloads the Grails central plugin list and saves it to the given file.

java.util.Collection getAllDependencies()

All dependencies of the current application

java.util.Collection getAllDependencies(java.lang.String scope)

All dependencies of the current application

java.util.Collection getApplicationDependencies()

The direct dependencies of the application, not including framework or dependencies inherited from plugins

java.util.Collection getApplicationDependencies(java.lang.String scope)

The direct dependencies of the application, not including framework or dependencies inherited from plugins

ExcludeResolver getExcludeResolver()

@return Returns the exclude resolver for this dependency manager

java.util.Collection getPluginDependencies()

@return The plugin dependencies of the application

java.util.Collection getPluginDependencies(java.lang.String scope)

The direct plugin dependencies of the application, not including framework or dependencies inherited from plugins

void parseDependencies(groovy.lang.Closure callable)

Parse the dependency definition DSL

void produceReport()

Outputs the dependency graph to System.out

void produceReport(java.lang.String scope)

Outputs the dependency graph to System.out

DependencyReport resolve(java.lang.String scope)

Resolve dependencies for the given scope

DependencyReport resolve()

Resolve dependencies for the default scope

DependencyReport resolveAgent()

Resolve the JVM agent to be used for the forked JVM

 

Field Detail

GRAILS_CENTRAL_PLUGIN_LIST

public java.lang.String GRAILS_CENTRAL_PLUGIN_LIST
URL to the central Grails plugin repository's global plugin list


 
Method Detail

createCopy

public DependencyManager createCopy(BuildSettings buildSettings)
Creates a copy of this dependency manager with repository configuration retained but dependencies omitted.
Parameters:
buildSettings - The BuildSettings
Returns:
The copy


downloadPluginInfo

public groovy.util.slurpersupport.GPathResult downloadPluginInfo(java.lang.String pluginName, java.lang.String pluginVersion)
Downloads information about a plugin from the -plugin.xml file
Parameters:
pluginName - The plugin name
pluginVersion - The plugin version
Returns:
The plugin.xml data or null if the plugin doesn't exit


downloadPluginList

public groovy.util.slurpersupport.GPathResult downloadPluginList(java.io.File localFile)
Downloads the Grails central plugin list and saves it to the given file. The file is then parsed and the resulting XML returned
Parameters:
localFile - The local file
Returns:
The parsed XML


getAllDependencies

public java.util.Collection getAllDependencies()
All dependencies of the current application
Returns:
All application dependencies


getAllDependencies

public java.util.Collection getAllDependencies(java.lang.String scope)
All dependencies of the current application
Parameters:
scope - The scope of the dependencies
Returns:
All application dependencies


getApplicationDependencies

public java.util.Collection getApplicationDependencies()
The direct dependencies of the application, not including framework or dependencies inherited from plugins
Returns:
Direct application dependencies


getApplicationDependencies

public java.util.Collection getApplicationDependencies(java.lang.String scope)
The direct dependencies of the application, not including framework or dependencies inherited from plugins
Parameters:
scope - The scope of the dependencies
Returns:
Direct application dependencies


getExcludeResolver

public ExcludeResolver getExcludeResolver()
Returns:
Returns the exclude resolver for this dependency manager


getPluginDependencies

public java.util.Collection getPluginDependencies()
Returns:
The plugin dependencies of the application


getPluginDependencies

public java.util.Collection getPluginDependencies(java.lang.String scope)
The direct plugin dependencies of the application, not including framework or dependencies inherited from plugins
Parameters:
scope - The scope of the dependencies
Returns:
Direct application dependencies


parseDependencies

public void parseDependencies(groovy.lang.Closure callable)
Parse the dependency definition DSL
Parameters:
callable - The DSL definition


produceReport

public void produceReport()
Outputs the dependency graph to System.out


produceReport

public void produceReport(java.lang.String scope)
Outputs the dependency graph to System.out
Parameters:
scope - The scope of the report


resolve

public DependencyReport resolve(java.lang.String scope)
Resolve dependencies for the given scope
Parameters:
scope - The scope
Returns:
The DependencyReport instance


resolve

public DependencyReport resolve()
Resolve dependencies for the default scope
Returns:
The DependencyReport instance


resolveAgent

public DependencyReport resolveAgent()
Resolve the JVM agent to be used for the forked JVM
Returns:
The DependencyReport instance or null if no agent configured


 

Groovy Documentation