Interface ArtifactBuilder
- All Known Implementing Classes:
Artifact.Builder
public interface ArtifactBuilder
-
Method Summary
Modifier and TypeMethodDescriptionvoidclosure(groovy.lang.Closure closure) This closure will be passed to the DependencyHandlervoidSame as above but its used for specific artifacts, the notation's must match for this to workvoidconfiguration(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 added
-
Method Details
-
configuration
The target configuration for artifactspreferably this should be a runtimeOnly configuration
- Parameters:
configuration- Configuration name- See Also:
-
ConfigurationContainer
-
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
-
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
-
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
-
closure
Same as above but its used for specific artifacts, the notation's must match for this to work- Parameters:
closure- artifact closure- See Also:
-
DependencyHandler
-