public interface DependencyManagementExtension extends DependencyManagementHandler
Modifier and Type | Method and Description |
---|---|
void |
applyMavenExclusions(boolean applyMavenExclusions)
Set whether or not Maven-style exclusions should be applied during dependency
resolutions.
|
void |
generatedPomCustomization(Action<GeneratedPomCustomizationHandler> action)
Uses the given
action to configure the customization of generated poms. |
void |
generatedPomCustomization(groovy.lang.Closure<?> closure)
Uses the given
closure to configure the customization of generated poms. |
Map<String,String> |
getManagedVersionsForConfiguration(Configuration configuration)
Returns a map of the managed versions for a specific
Configuration ,
ignoring its hierarchy. |
Map<String,String> |
getManagedVersionsForConfigurationHierarchy(Configuration configuration)
Returns a map of the managed versions for a specific
Configuration ,
including its hierarchy. |
PomDependencyManagementConfigurer |
getPomConfigurer()
Provides access to the
PomDependencyManagementConfigurer that can be used
to configure dependency management in a generated pom. |
void |
overriddenByDependencies(boolean overriddenByDependencies)
Set whether dependency management should be overridden by versions declared on a
project's dependencies.
|
void |
resolutionStrategy(Action<ResolutionStrategy> action)
Configures the resolution strategy of all dependency management-related
Configurations using the given action . |
void |
resolutionStrategy(groovy.lang.Closure<?> closure)
Configures the resolution strategy of all dependency management-related
Configurations using the given closure . |
void |
setApplyMavenExclusions(boolean applyMavenExclusions)
Set whether or not Maven-style exclusions should be applied during dependency
resolutions.
|
void |
setOverriddenByDependencies(boolean overriddenByDependencies)
Set whether dependency management should be overridden by versions declared on a
project's dependencies.
|
getImportedProperties, getManagedVersions
dependencies, dependencies, imports, imports
void resolutionStrategy(groovy.lang.Closure<?> closure)
Configurations
using the given closure
.closure
- the closure that will configure the resolution strategiesvoid resolutionStrategy(Action<ResolutionStrategy> action)
Configurations
using the given action
.action
- the action that will configure the resolution strategiesvoid generatedPomCustomization(groovy.lang.Closure<?> closure)
closure
to configure the customization of generated poms.
The closure is called with a GeneratedPomCustomizationHandler
as its
delegate.closure
- the closureGeneratedPomCustomizationHandler
void generatedPomCustomization(Action<GeneratedPomCustomizationHandler> action)
action
to configure the customization of generated poms.action
- the actionGeneratedPomCustomizationHandler
PomDependencyManagementConfigurer getPomConfigurer()
PomDependencyManagementConfigurer
that can be used
to configure dependency management in a generated pom.void setApplyMavenExclusions(boolean applyMavenExclusions)
true
.applyMavenExclusions
- true
if Maven-style exclusions should be
applied, otherwise false
void applyMavenExclusions(boolean applyMavenExclusions)
true
.applyMavenExclusions
- true
if Maven-style exclusions should be
applied, otherwise false
void setOverriddenByDependencies(boolean overriddenByDependencies)
true
.overriddenByDependencies
- true
if dependency management should be
overridden by dependencies' versions, otherwise false
void overriddenByDependencies(boolean overriddenByDependencies)
true
.overriddenByDependencies
- true
if dependency management should be
overridden by dependencies' versions, otherwise false
Map<String,String> getManagedVersionsForConfiguration(Configuration configuration)
Configuration
,
ignoring its hierarchy. The key-value pairs in the map have the form
group:name = version
.configuration
- the configurationMap<String,String> getManagedVersionsForConfigurationHierarchy(Configuration configuration)
Configuration
,
including its hierarchy. The key-value pairs in the map have the form
group:name = version
.configuration
- the configuration