public class DependencyBuilder
extends java.lang.Object
| Constructor and Description |
|---|
DependencyBuilder() |
| Modifier and Type | Method and Description |
|---|---|
DependencyBuilder |
addProperties(java.util.Properties properties)
Adds properties to the properties object
|
DependencyBuilder |
addProperty(java.lang.Object key,
java.lang.Object value)
Adds the given property to the properties object
|
DependencyBuilder |
addRequestedBy(java.lang.String[] pathToModuleRoot)
Adds an ID of another dependency that requires this one to the requestedBy dependencies list.
|
DependencyBuilder |
addScope(java.lang.String scope)
Adds the given scope to the scopes set
|
Dependency |
build()
Assembles the dependency class
|
DependencyBuilder |
id(java.lang.String id)
Sets the ID of the dependency
|
DependencyBuilder |
localPath(java.lang.String localPath)
Sets the local path of the dependency
|
DependencyBuilder |
md5(java.lang.String md5)
Sets the MD5 checksum of the dependency
|
DependencyBuilder |
properties(java.util.Properties properties)
Sets the properties of the dependency
|
DependencyBuilder |
remotePath(java.lang.String remotePath)
Sets the remote path of the dependency
|
DependencyBuilder |
requestedBy(java.lang.String[][] requestedBy)
Sets path-to-root dependency lists that directly depend on this dependency.
|
DependencyBuilder |
scopes(java.util.Set<java.lang.String> scopes)
Sets the scope list of the dependency
|
DependencyBuilder |
sha1(java.lang.String sha1)
Sets the SHA1 checksum of the dependency
|
DependencyBuilder |
sha256(java.lang.String sha256)
Sets the SHA256 checksum of the dependency
|
DependencyBuilder |
type(java.lang.String type)
Sets the type of the dependency
|
public Dependency build()
public DependencyBuilder id(java.lang.String id)
id - Dependency IDpublic DependencyBuilder type(java.lang.String type)
type - Dependency typepublic DependencyBuilder scopes(java.util.Set<java.lang.String> scopes)
scopes - Dependency scope listpublic DependencyBuilder addScope(java.lang.String scope)
scope - Dependency scope listpublic DependencyBuilder sha1(java.lang.String sha1)
sha1 - Dependency SHA1 checksumpublic DependencyBuilder sha256(java.lang.String sha256)
sha256 - Dependency SHA256 checksumpublic DependencyBuilder md5(java.lang.String md5)
md5 - Dependency MD5 checksumpublic DependencyBuilder localPath(java.lang.String localPath)
localPath - Dependency local pathpublic DependencyBuilder remotePath(java.lang.String remotePath)
remotePath - Dependency remote pathpublic DependencyBuilder requestedBy(java.lang.String[][] requestedBy)
requestedBy - dependency path-to-root listspublic DependencyBuilder addRequestedBy(java.lang.String[] pathToModuleRoot)
pathToModuleRoot - - path from parent dependency to the module ID, modules separatedpublic DependencyBuilder properties(java.util.Properties properties)
properties - Dependency propertiespublic DependencyBuilder addProperty(java.lang.Object key, java.lang.Object value)
key - Key of property to addvalue - Value of property to addpublic DependencyBuilder addProperties(java.util.Properties properties)
properties - Dependencies properties