Base class for IvyDependencyManager with some logic implemented in Java.
Modifiers | Name | Description |
---|---|---|
static org.apache.ivy.core.module.descriptor.Configuration |
AGENT_CONFIGURATION |
|
static java.util.List<org.apache.ivy.core.module.descriptor.Configuration> |
ALL_CONFIGURATIONS |
|
static org.apache.ivy.core.module.descriptor.Configuration |
BUILD_CONFIGURATION |
|
static org.apache.ivy.core.module.descriptor.Configuration |
COMPILE_CONFIGURATION |
|
static org.apache.ivy.core.module.descriptor.Configuration |
DOCS_CONFIGURATION |
|
static org.apache.ivy.core.module.descriptor.ExcludeRule[] |
NO_EXCLUDE_RULES |
|
static org.apache.ivy.core.module.descriptor.Configuration |
PROVIDED_CONFIGURATION |
|
static org.apache.ivy.core.module.descriptor.Configuration |
RUNTIME_CONFIGURATION |
|
static java.lang.String |
SNAPSHOT_CHANGING_PATTERN |
|
static org.apache.ivy.core.module.descriptor.Configuration |
TEST_CONFIGURATION |
|
protected java.lang.String |
applicationName |
|
protected java.lang.String |
applicationVersion |
|
protected BuildSettings |
buildSettings |
|
protected java.lang.String[] |
configurationNames |
|
protected java.util.Set<org.apache.ivy.core.module.id.ModuleRevisionId> |
dependencies |
|
protected java.util.Set<org.apache.ivy.core.module.descriptor.DependencyDescriptor> |
dependencyDescriptors |
|
protected boolean |
hasApplicationDependencies |
|
protected boolean |
includeJavadoc |
|
protected boolean |
includeSource |
|
protected org.apache.ivy.core.settings.IvySettings |
ivySettings |
|
protected boolean |
legacyResolve |
|
protected Metadata |
metadata |
|
protected java.util.Set<java.lang.String> |
metadataRegisteredPluginNames |
|
protected org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor |
moduleDescriptor |
|
protected java.util.Set<org.apache.ivy.core.module.id.ModuleId> |
modules |
|
protected java.util.Map<java.lang.String, java.util.Collection<org.apache.ivy.core.module.id.ModuleRevisionId>> |
orgToDepMap |
|
protected java.util.Set<org.apache.ivy.core.module.descriptor.DependencyDescriptor> |
pluginDependencyDescriptors |
|
protected java.util.Map<java.lang.String, org.apache.ivy.core.module.descriptor.DependencyDescriptor> |
pluginNameToDescriptorMap |
|
protected boolean |
readPom |
|
protected java.util.Collection<java.lang.String> |
usedConfigurations |
Constructor and description |
---|
AbstractIvyDependencyManager
(org.apache.ivy.core.settings.IvySettings ivySettings, BuildSettings buildSettings, Metadata metadata) |
Type | Name and description |
---|---|
void |
configureDependencyDescriptor(EnhancedDefaultDependencyDescriptor dependencyDescriptor, java.lang.String scope) @deprecated use registerDependency(String, EnhancedDefaultDependencyDescriptor) |
void |
configureDependencyDescriptor(EnhancedDefaultDependencyDescriptor dependencyDescriptor, java.lang.String scope, boolean pluginMode) @deprecated use registerDependency(String, EnhancedDefaultDependencyDescriptor) or registerPluginDependency(String EnhancedDefaultDependencyDescriptor) |
IvyDependencyManager |
createCopy(BuildSettings settings) |
protected org.apache.ivy.core.module.id.ArtifactId |
createExcludeArtifactId(java.lang.String excludeName) |
protected org.apache.ivy.core.module.id.ArtifactId |
createExcludeArtifactId(java.lang.String excludeName, java.lang.String group) |
org.apache.ivy.core.module.descriptor.ModuleDescriptor |
createModuleDescriptor() |
java.lang.String |
getApplicationName() |
java.lang.String |
getApplicationVersion() |
BuildSettings |
getBuildSettings() |
org.apache.ivy.plugins.resolver.ChainResolver |
getChainResolver() |
java.util.Map<java.lang.String, java.util.List<java.lang.String>> |
getConfigurationMappings() |
java.lang.String[] |
getConfigurationNames() |
java.util.Set<org.apache.ivy.core.module.id.ModuleRevisionId> |
getDependencies() Obtains a list of dependencies defined in the project |
org.apache.ivy.core.settings.IvySettings |
getIvySettings() |
org.apache.ivy.util.MessageLogger |
getLogger() |
Metadata |
getMetadata() |
java.util.Set<java.lang.String> |
getMetadataRegisteredPluginNames() |
org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor |
getModuleDescriptor() |
org.apache.ivy.core.module.descriptor.DependencyDescriptor |
getPluginDependencyDescriptor(java.lang.String pluginName) Obtains a particular DependencyDescriptor by the plugin name |
java.util.Set<org.apache.ivy.core.module.descriptor.DependencyDescriptor> |
getPluginDependencyDescriptors() Obtains a set of plugin dependency descriptors defined in the project |
java.util.Set<java.lang.String> |
getPluginDependencyNames() Obtains a set of plugins this application is dependent onb |
java.util.Set<java.lang.String> |
getPluginExcludes(java.lang.String plugin) |
boolean |
getReadPom() |
org.apache.ivy.core.resolve.ResolveEngine |
getResolveEngine() |
java.util.Collection<java.lang.String> |
getUsedConfigurations() |
boolean |
hasApplicationDependencies() Returns true if the application has any dependencies that are not inherited from the framework or other plugins |
protected void |
initializeModuleDescriptor() |
boolean |
isExcludedFromPlugin(java.lang.String plugin, java.lang.String dependencyName) |
boolean |
isExcludedFromPlugin(org.apache.ivy.core.module.descriptor.DependencyDescriptor currentPlugin, org.apache.ivy.core.module.id.ArtifactId dependency) |
boolean |
isLegacyResolve() Whether the legacy approach of parsing dependencies.groovy in addition to pom.xml should be used during dependency resolution |
boolean |
isOffline() |
boolean |
isPluginTransitive(java.lang.String pluginName) Returns whether a plugin is transitive, ie whether its dependencies are resolved transitively |
boolean |
isPluginTransitivelyIncluded(java.lang.String pluginName) Whether the plugin is directly included or a transitive dependency of another plugin |
void |
parseDependencies(groovy.lang.Closure definition) Parses the Ivy DSL definition |
void |
parseDependencies(java.lang.String pluginName, groovy.lang.Closure<?> definition) Parses dependencies of a plugin. |
void |
parseDependencies(java.lang.String pluginName, groovy.lang.Closure<?> definition, org.apache.ivy.core.module.descriptor.ExcludeRule[] excludeRules) Parses dependencies of a plugin. |
org.apache.ivy.core.module.descriptor.DependencyDescriptor[] |
readDependenciesFromPOM() |
void |
registerDependency(java.lang.String scope, EnhancedDefaultDependencyDescriptor descriptor) Registers a JAR dependency with the dependency manager. |
void |
registerPluginDependency(java.lang.String scope, EnhancedDefaultDependencyDescriptor descriptor) Registers a plugin dependency (as in Grails plugin). |
void |
setApplicationName(java.lang.String applicationName) |
void |
setApplicationVersion(java.lang.String applicationVersion) |
void |
setChainResolver(org.apache.ivy.plugins.resolver.ChainResolver chainResolver) |
void |
setIncludeJavadoc(boolean includeJavadoc) |
void |
setIncludeSource(boolean includeSource) |
void |
setLegacyResolve(boolean legacyResolve) |
void |
setLogger(org.apache.ivy.util.MessageLogger logger) |
void |
setMetadataRegisteredPluginNames(java.util.Set<java.lang.String> metadataRegisteredPluginNames) |
void |
setModuleDescriptor(org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor moduleDescriptor) |
void |
setOffline(boolean offline) |
void |
setReadPom(boolean flag) |
void |
setResolveEngine(org.apache.ivy.core.resolve.ResolveEngine resolveEngine) |
void |
setUsedConfigurations(java.util.Collection<java.lang.String> usedConfigurations) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Obtains a list of dependencies defined in the project
Obtains a particular DependencyDescriptor by the plugin name
pluginName
- The plugin nameObtains a set of plugin dependency descriptors defined in the project
Obtains a set of plugins this application is dependent onb
Returns true if the application has any dependencies that are not inherited from the framework or other plugins
Whether the legacy approach of parsing dependencies.groovy in addition to pom.xml should be used during dependency resolution
Returns whether a plugin is transitive, ie whether its dependencies are resolved transitively
pluginName
- The name of the pluginWhether the plugin is directly included or a transitive dependency of another plugin
pluginName
- The plugin nameParses the Ivy DSL definition
Parses dependencies of a plugin.
pluginName
- the name of the plugindefinition
- the Ivy DSL definitionParses dependencies of a plugin.
pluginName
- the name of the plugindefinition
- the Ivy DSL definitionRegisters a JAR dependency with the dependency manager.
Registers a plugin dependency (as in Grails plugin).