Class ConfigurationConfig.Builder
java.lang.Object
io.github.srdjanv.localgitdependency.config.impl.dependency.ConfigurationConfig.Builder
- All Implemented Interfaces:
ConfigurationBuilder
- Enclosing class:
- ConfigurationConfig
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configuration
Description copied from interface:ConfigurationBuilderThe target configuration for artifactspreferably this should be a runtimeOnly configuration
- Specified by:
configurationin interfaceConfigurationBuilder- Parameters:
configuration- Configuration name- See Also:
-
ConfigurationContainer
-
closure
public void closure(groovy.lang.Closure closure) Description copied from interface:ConfigurationBuilderThis closure will be passed to the DependencyHandlerIf left empty the closure of the dependency builder will be used
- Specified by:
closurein interfaceConfigurationBuilder- Parameters:
closure- artifact closure- See Also:
-
DependencyHandler
-
include
Description copied from interface:ConfigurationBuilderIf 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). *
- Specified by:
includein interfaceConfigurationBuilder- Parameters:
notation- include notations- See Also:
-
ConfigurationContainerDependency.Type
-
include
- Specified by:
includein interfaceConfigurationBuilder
-
exclude
Description copied from interface:ConfigurationBuilderSame as the above but is used for exclusion, this should not be used alongside include- Specified by:
excludein interfaceConfigurationBuilder- Parameters:
notation- include notations- See Also:
-
ConfigurationContainerDependency.Type
-