Interface ResolvedDependency
-
- All Superinterfaces:
java.lang.Cloneable,org.gradle.api.artifacts.Dependency,GolangCloneable,GolangDependency,java.io.Serializable
- All Known Implementing Classes:
AbstractResolvedDependency,GogradleRootProject,LocalDirectoryDependency,VcsResolvedDependency,VendorResolvedDependency
public interface ResolvedDependency extends GolangDependency
Represent a set of concrete source code, e.g. a git repository with specific commit.Conventionally, a "ResolvedDependency" also contains its children - a set of "NotationDependency".
-
-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringformatVersion()Get the formatted version, typically for dependency tree display.GolangDependencySetgetDependencies()Get transitive dependencies of this package.longgetUpdateTime()The update time of a dependency package.voidinstallTo(java.io.File targetDirectory)Install to a target directory.java.util.Map<java.lang.String,java.lang.Object>toLockedNotation()Get a map notation of thisResolvedDependency.-
Methods inherited from interface org.gradle.api.artifacts.Dependency
because, contentEquals, copy, getGroup, getReason
-
Methods inherited from interface com.github.blindpirate.gogradle.core.GolangCloneable
clone
-
Methods inherited from interface com.github.blindpirate.gogradle.core.dependency.GolangDependency
getCacheScope, getName, getPackage, getSubpackages, getVersion, isFirstLevel, resolve
-
-
-
-
Method Detail
-
getUpdateTime
long getUpdateTime()
The update time of a dependency package. It will be used in resolving package conflict. Generally speaking, package with newest update time will win.- Returns:
- the update time determined by the package. It may be the last modified time of a file on filesystem or in scm.
-
getDependencies
GolangDependencySet getDependencies()
Get transitive dependencies of this package.- Returns:
- the transitive dependencies
-
toLockedNotation
java.util.Map<java.lang.String,java.lang.Object> toLockedNotation()
Get a map notation of thisResolvedDependency.- Returns:
- the map notation
-
installTo
void installTo(java.io.File targetDirectory)
Install to a target directory.- Parameters:
targetDirectory- the directory
-
formatVersion
java.lang.String formatVersion()
Get the formatted version, typically for dependency tree display.- Returns:
- the formatted version
-
-