Class VcsNotationDependency
- java.lang.Object
-
- com.github.blindpirate.gogradle.core.dependency.AbstractGolangDependency
-
- com.github.blindpirate.gogradle.core.dependency.AbstractNotationDependency
-
- com.github.blindpirate.gogradle.vcs.VcsNotationDependency
-
- All Implemented Interfaces:
GolangDependency,NotationDependency,GolangCloneable,java.io.Serializable,java.lang.Cloneable,org.gradle.api.artifacts.Dependency
- Direct Known Subclasses:
GitNotationDependency,MercurialNotationDependency
public abstract class VcsNotationDependency extends AbstractNotationDependency
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.blindpirate.gogradle.core.dependency.AbstractNotationDependency
AbstractNotationDependency.NoTransitivePredicate, AbstractNotationDependency.PropertiesExclusionPredicate
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBRANCH_KEYstatic java.lang.StringCOMMIT_KEYstatic java.lang.StringLATEST_COMMITstatic java.lang.StringTAG_KEYstatic java.lang.StringURL_KEYstatic java.lang.StringURLS_KEY-
Fields inherited from class com.github.blindpirate.gogradle.core.dependency.AbstractNotationDependency
NO_TRANSITIVE_DEP_PREDICATE, transitiveDepExclusions, VERSION_KEY
-
Fields inherited from interface org.gradle.api.artifacts.Dependency
ARCHIVES_CONFIGURATION, CLASSIFIER, DEFAULT_CONFIGURATION
-
Fields inherited from interface com.github.blindpirate.gogradle.core.dependency.GolangDependency
ALL_DESCENDANTS, ONLY_CURRENT_FILES
-
-
Constructor Summary
Constructors Constructor Description VcsNotationDependency()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetBranch()CacheScopegetCacheScope()Get cache scope of this dependency.java.lang.StringgetCommit()java.lang.StringgetTag()java.util.List<java.lang.String>getUrls()java.lang.StringgetVersion()An unique identifier to locate a dependency, e.g., git commit id.inthashCode()booleanisLatest()voidsetBranch(java.lang.String branch)voidsetCommit(java.lang.String commit)voidsetTag(java.lang.String tag)voidsetVersion(java.lang.String version)java.lang.StringtoString()-
Methods inherited from class com.github.blindpirate.gogradle.core.dependency.AbstractNotationDependency
clone, doResolve, exclude, getTransitiveDepExclusions, hasBeenResolved, resolve, setTransitive
-
Methods inherited from class com.github.blindpirate.gogradle.core.dependency.AbstractGolangDependency
because, containsAllSubpackages, contentEquals, copy, getGroup, getName, getPackage, getReason, getSubpackages, isFirstLevel, setFirstLevel, setName, setPackage, setSubpackage, setSubpackage, setSubpackages, setSubpackages
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gradle.api.artifacts.Dependency
because, contentEquals, copy, getGroup, getReason
-
Methods inherited from interface com.github.blindpirate.gogradle.core.dependency.GolangDependency
getName, getPackage, getSubpackages, isFirstLevel
-
-
-
-
Field Detail
-
LATEST_COMMIT
public static final java.lang.String LATEST_COMMIT
- See Also:
- Constant Field Values
-
URL_KEY
public static final java.lang.String URL_KEY
- See Also:
- Constant Field Values
-
URLS_KEY
public static final java.lang.String URLS_KEY
- See Also:
- Constant Field Values
-
BRANCH_KEY
public static final java.lang.String BRANCH_KEY
- See Also:
- Constant Field Values
-
TAG_KEY
public static final java.lang.String TAG_KEY
- See Also:
- Constant Field Values
-
COMMIT_KEY
public static final java.lang.String COMMIT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommit
public java.lang.String getCommit()
-
getTag
public java.lang.String getTag()
-
setCommit
public void setCommit(java.lang.String commit)
-
getBranch
public java.lang.String getBranch()
-
setBranch
public void setBranch(java.lang.String branch)
-
setTag
public void setTag(java.lang.String tag)
-
getUrls
public java.util.List<java.lang.String> getUrls()
-
setVersion
public void setVersion(java.lang.String version)
-
getVersion
public java.lang.String getVersion()
Description copied from interface:GolangDependencyAn unique identifier to locate a dependency, e.g., git commit id.- Specified by:
getVersionin interfaceorg.gradle.api.artifacts.Dependency- Specified by:
getVersionin interfaceGolangDependency- Overrides:
getVersionin classAbstractGolangDependency- Returns:
- the version string
-
getCacheScope
public CacheScope getCacheScope()
Description copied from interface:GolangDependencyGet cache scope of this dependency.- Returns:
- the cache scope
-
isLatest
public boolean isLatest()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractGolangDependency
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractNotationDependency
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractNotationDependency
-
-