|
Griffon 1.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.griffon.resolve.AbstractIvyDependencyManager
public abstract class AbstractIvyDependencyManager
Base class for IvyDependencyManager with some logic implemented in Java.
Constructor Summary | |
AbstractIvyDependencyManager(IvySettings ivySettings, BuildSettings buildSettings, Metadata metadata)
|
Method Summary | |
---|---|
private void
|
addDefaultModuleConfigurations(EnhancedDefaultDependencyDescriptor descriptor, String configurationName, boolean pluginDep)
|
private void
|
addMetadataPluginDependencies(Map plugins)
|
protected ArtifactId
|
createExcludeArtifactId(String excludeName)
|
protected ArtifactId
|
createExcludeArtifactId(String excludeName, String group)
|
ModuleDescriptor
|
createModuleDescriptor()
|
private void
|
doParseDependencies(Closure definition, String pluginName)
Evaluates the given DSL definition. |
String
|
getApplicationName()
|
String
|
getApplicationVersion()
|
BuildSettings
|
getBuildSettings()
|
ChainResolver
|
getChainResolver()
|
Map
|
getConfigurationMappings()
|
String[]
|
getConfigurationNames()
|
Set
|
getDeclaredPluginDependencyDescriptors()
Returns all plugin dependency descriptors that are not transitively included |
Set
|
getDependencies()
Obtains a list of dependencies defined in the project |
Set
|
getDependencyDescriptors()
Obtains a set of dependency descriptors defined in the project |
IvySettings
|
getIvySettings()
|
Metadata
|
getMetadata()
|
Set
|
getMetadataRegisteredPluginNames()
|
DefaultModuleDescriptor
|
getModuleDescriptor()
|
DependencyDescriptor
|
getPluginDependencyDescriptor(String pluginName)
Obtains a particular DependencyDescriptor by the plugin name |
Set
|
getPluginDependencyDescriptors()
Obtains a set of plugin dependency descriptors defined in the project |
Set
|
getPluginDependencyNames()
Obtains a set of plugins this application is dependent onb |
Set
|
getPluginExcludes(String plugin)
|
boolean
|
getReadPom()
|
Collection
|
getUsedConfigurations()
|
boolean
|
hasApplicationDependencies()
Returns true if the application has any dependencies that are not inherited from the framework or other plugins |
boolean
|
hasDependency(ModuleId mid)
Tests whether the given ModuleId is defined in the list of dependencies |
boolean
|
hasDependency(String group, String name)
Tests whether the given group and name are defined in the list of dependencies |
private boolean
|
isCompileOrRuntimeScope(String scope)
|
boolean
|
isExcludedFromPlugin(String plugin, String dependencyName)
|
boolean
|
isExcludedFromPlugin(DependencyDescriptor currentPlugin, ArtifactId dependency)
|
private boolean
|
isExposedByThisPlugin(EnhancedDefaultDependencyDescriptor descriptor)
|
boolean
|
isOffline()
|
boolean
|
isPluginTransitive(String pluginName)
Returns whether a plugin is transitive, ie whether its dependencies are resolved transitively |
boolean
|
isPluginTransitivelyIncluded(String pluginName)
Whether the plugin is directly included or a transitive dependency of another plugin |
void
|
parseDependencies(Closure definition)
Parses the Ivy DSL definition |
void
|
parseDependencies(String pluginName, Closure definition)
Parses dependencies of a plugin. |
DependencyDescriptor[]
|
readDependenciesFromPOM()
|
void
|
registerDependency(String scope, EnhancedDefaultDependencyDescriptor descriptor)
Registers a JAR dependency with the dependency manager. |
private void
|
registerDependencyCommon(String scope, EnhancedDefaultDependencyDescriptor descriptor, boolean isPluginDep)
Aspects of registering a dependency common to both plugins and jar dependencies. |
void
|
registerPluginDependency(String scope, EnhancedDefaultDependencyDescriptor descriptor)
Registers a plugin dependency (as in Griffon plugin). |
private void
|
registerPomDependencies()
|
private void
|
registerPomDependency(DependencyDescriptor dependencyDescriptor)
|
private void
|
registerUsedConfigurationIfNecessary(String configurationName)
|
void
|
setApplicationName(String applicationName)
|
void
|
setApplicationVersion(String applicationVersion)
|
void
|
setChainResolver(ChainResolver chainResolver)
|
void
|
setIncludeJavadoc(boolean includeJavadoc)
|
void
|
setIncludeSource(boolean includeSource)
|
void
|
setMetadataRegisteredPluginNames(Set metadataRegisteredPluginNames)
|
void
|
setModuleDescriptor(DefaultModuleDescriptor moduleDescriptor)
|
void
|
setReadPom(boolean flag)
|
void
|
setUsedConfigurations(Collection usedConfigurations)
|
private boolean
|
shouldIncludeDependency(EnhancedDefaultDependencyDescriptor descriptor)
|
protected void
|
updateChangingPattern()
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
public static List ALL_CONFIGURATIONS
public static Configuration BUILD_CONFIGURATION
public static Configuration COMPILE_CONFIGURATION
public static Configuration DOCS_CONFIGURATION
public static Configuration RUNTIME_CONFIGURATION
public static final String SNAPSHOT_CHANGING_PATTERN
public static Configuration TEST_CONFIGURATION
protected String applicationName
protected String applicationVersion
protected final BuildSettings buildSettings
private ChainResolver chainResolver
@SuppressWarnings("unchecked") Map configurationMappings
protected String[] configurationNames
protected Set dependencies
protected Set dependencyDescriptors
protected boolean hasApplicationDependencies
protected boolean includeJavadoc
protected boolean includeSource
protected final IvySettings ivySettings
protected final Metadata metadata
protected Set metadataRegisteredPluginNames
protected DefaultModuleDescriptor moduleDescriptor
protected Set modules
protected Map orgToDepMap
protected Set pluginDependencyDescriptors
protected Map pluginNameToDescriptorMap
protected boolean readPom
protected Collection usedConfigurations
Constructor Detail |
---|
public AbstractIvyDependencyManager(IvySettings ivySettings, BuildSettings buildSettings, Metadata metadata)
Method Detail |
---|
private void addDefaultModuleConfigurations(EnhancedDefaultDependencyDescriptor descriptor, String configurationName, boolean pluginDep)
private void addMetadataPluginDependencies(Map plugins)
protected ArtifactId createExcludeArtifactId(String excludeName)
protected ArtifactId createExcludeArtifactId(String excludeName, String group)
public ModuleDescriptor createModuleDescriptor()
private void doParseDependencies(Closure definition, String pluginName)
public String getApplicationName()
public String getApplicationVersion()
public BuildSettings getBuildSettings()
public ChainResolver getChainResolver()
public Map getConfigurationMappings()
public String[] getConfigurationNames()
Set getDeclaredPluginDependencyDescriptors()
public Set getDependencies()
Set getDependencyDescriptors()
public IvySettings getIvySettings()
public Metadata getMetadata()
public Set getMetadataRegisteredPluginNames()
public DefaultModuleDescriptor getModuleDescriptor()
public DependencyDescriptor getPluginDependencyDescriptor(String pluginName)
pluginName
- The plugin name
Set getPluginDependencyDescriptors()
public Set getPluginDependencyNames()
public Set getPluginExcludes(String plugin)
public boolean getReadPom()
public Collection getUsedConfigurations()
public boolean hasApplicationDependencies()
boolean hasDependency(ModuleId mid)
boolean hasDependency(String group, String name)
private boolean isCompileOrRuntimeScope(String scope)
public boolean isExcludedFromPlugin(String plugin, String dependencyName)
public boolean isExcludedFromPlugin(DependencyDescriptor currentPlugin, ArtifactId dependency)
private boolean isExposedByThisPlugin(EnhancedDefaultDependencyDescriptor descriptor)
public boolean isOffline()
public boolean isPluginTransitive(String pluginName)
pluginName
- The name of the plugin
public boolean isPluginTransitivelyIncluded(String pluginName)
pluginName
- The plugin name
public void parseDependencies(@SuppressWarnings("rawtypes") Closure definition)
public void parseDependencies(String pluginName, Closure definition)
pluginName
- the name of the plugindefinition
- the Ivy DSL definition
public DependencyDescriptor[] readDependenciesFromPOM()
public void registerDependency(String scope, EnhancedDefaultDependencyDescriptor descriptor)
private void registerDependencyCommon(String scope, EnhancedDefaultDependencyDescriptor descriptor, boolean isPluginDep)
public void registerPluginDependency(String scope, EnhancedDefaultDependencyDescriptor descriptor)
private void registerPomDependencies()
private void registerPomDependency(DependencyDescriptor dependencyDescriptor)
private void registerUsedConfigurationIfNecessary(String configurationName)
public void setApplicationName(String applicationName)
public void setApplicationVersion(String applicationVersion)
public void setChainResolver(ChainResolver chainResolver)
public void setIncludeJavadoc(boolean includeJavadoc)
public void setIncludeSource(boolean includeSource)
public void setMetadataRegisteredPluginNames(Set metadataRegisteredPluginNames)
public void setModuleDescriptor(DefaultModuleDescriptor moduleDescriptor)
public void setReadPom(boolean flag)
public void setUsedConfigurations(Collection usedConfigurations)
private boolean shouldIncludeDependency(EnhancedDefaultDependencyDescriptor descriptor)
protected void updateChangingPattern()
Groovy Documentation