Class Artifact.Builder
java.lang.Object
io.github.srdjanv.localgitdependency.property.impl.Artifact.Builder
- All Implemented Interfaces:
ArtifactBuilder
- Enclosing class:
- Artifact
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configuration
Description copied from interface:ArtifactBuilderThe target configuration for artifactspreferably this should be a runtimeOnly configuration
- Specified by:
configurationin interfaceArtifactBuilder- Parameters:
configuration- Configuration name- See Also:
-
ConfigurationContainer
-
include
Description copied from interface:ArtifactBuilderIf 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 interfaceArtifactBuilder- Parameters:
notation- include notations- See Also:
-
ConfigurationContainerDependency.Type
-
exclude
Description copied from interface:ArtifactBuilderSame as the above but is used for exclusion, this should not be used alongside include- Specified by:
excludein interfaceArtifactBuilder- Parameters:
notation- include notations- See Also:
-
ConfigurationContainerDependency.Type
-
closure
public void closure(groovy.lang.Closure closure) Description copied from interface:ArtifactBuilderThis closure will be passed to the DependencyHandlerIf left empty the closure of the dependency builder will be used
- Specified by:
closurein interfaceArtifactBuilder- Parameters:
closure- artifact closure- See Also:
-
DependencyHandler
-
closure
Description copied from interface:ArtifactBuilderSame as above but its used for specific artifacts, the notation's must match for this to work- Specified by:
closurein interfaceArtifactBuilderclosure- artifact closure- See Also:
-
DependencyHandler
-