Interface ConfigurationBuilder
- All Known Implementing Classes:
ConfigurationConfig.Builder
public interface ConfigurationBuilder
-
Method Summary
Modifier and TypeMethodDescriptionvoidclosure(groovy.lang.Closure closure) This closure will be passed to the DependencyHandlervoidconfiguration(String configuration) The target configuration for artifactsvoidSame as the above but is used for exclusion, this should not be used alongside includevoidIf the dependency type is Jar then the plugin will use string contains to filter what jars are going to be addedvoid
-
Method Details
-
configuration
The target configuration for artifactspreferably this should be a runtimeOnly configuration
- Parameters:
configuration- Configuration name- See Also:
-
ConfigurationContainer
-
closure
void closure(groovy.lang.Closure closure) This closure will be passed to the DependencyHandlerIf left empty the closure of the dependency builder will be used
- Parameters:
closure- artifact closure- See Also:
-
DependencyHandler
-
include
If the dependency type is Jar then the plugin will use string contains to filter what jars are going to be addedIf its any other type the string will act as a dependency notation, you can add only the artifact name and the plugin will add the group and version automatically. If the supplied string contains ':' the plugin will assume that is a full dependency notation(group:name:version). *
- Parameters:
notation- include notations- See Also:
-
ConfigurationContainerDependency.Type
-
include
-
exclude
Same as the above but is used for exclusion, this should not be used alongside include- Parameters:
notation- include notations- See Also:
-
ConfigurationContainerDependency.Type
-