Class VendorResolvedDependency
- java.lang.Object
-
- com.github.blindpirate.gogradle.core.dependency.AbstractGolangDependency
-
- com.github.blindpirate.gogradle.core.dependency.AbstractResolvedDependency
-
- com.github.blindpirate.gogradle.core.dependency.VendorResolvedDependency
-
- All Implemented Interfaces:
GolangDependency,ResolvedDependency,GolangCloneable,java.io.Serializable,java.lang.Cloneable,org.gradle.api.artifacts.Dependency
public class VendorResolvedDependency extends AbstractResolvedDependency
- See Also:
- Serialized Form
-
-
Field Summary
-
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 Modifier Constructor Description protectedVendorResolvedDependency(java.lang.String name, java.lang.String version, long updateTime, ResolvedDependency hostDependency, java.lang.String relativePathToHost)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringformatVersion()Get the formatted version, typically for dependency tree display.static VendorResolvedDependencyfromParent(java.lang.String name, ResolvedDependency parent, java.io.File rootDirOfThisVendor)CacheScopegetCacheScope()Get cache scope of this dependency.ResolvedDependencygetHostDependency()protected DependencyManagergetInstaller()java.lang.StringgetRelativePathToHost()inthashCode()java.util.Map<java.lang.String,java.lang.Object>toLockedNotation()Get a map notation of thisResolvedDependency.-
Methods inherited from class com.github.blindpirate.gogradle.core.dependency.AbstractResolvedDependency
clone, getDependencies, getUpdateTime, getVersion, installTo, resolve, setDependencies, toString
-
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
-
-
-
-
Constructor Detail
-
VendorResolvedDependency
protected VendorResolvedDependency(java.lang.String name, java.lang.String version, long updateTime, ResolvedDependency hostDependency, java.lang.String relativePathToHost)
-
-
Method Detail
-
fromParent
public static VendorResolvedDependency fromParent(java.lang.String name, ResolvedDependency parent, java.io.File rootDirOfThisVendor)
-
getHostDependency
public ResolvedDependency getHostDependency()
-
getRelativePathToHost
public java.lang.String getRelativePathToHost()
-
getInstaller
protected DependencyManager getInstaller()
- Specified by:
getInstallerin classAbstractResolvedDependency
-
formatVersion
public java.lang.String formatVersion()
Description copied from interface:ResolvedDependencyGet the formatted version, typically for dependency tree display.- Returns:
- the formatted version
-
toLockedNotation
public java.util.Map<java.lang.String,java.lang.Object> toLockedNotation()
Description copied from interface:ResolvedDependencyGet a map notation of thisResolvedDependency.- Returns:
- the map notation
-
getCacheScope
public CacheScope getCacheScope()
Description copied from interface:GolangDependencyGet cache scope of this dependency.- Specified by:
getCacheScopein interfaceGolangDependency- Overrides:
getCacheScopein classAbstractResolvedDependency- Returns:
- the cache scope
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractResolvedDependency
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractResolvedDependency
-
-