public interface GolangDependency extends org.gradle.api.artifacts.Dependency, java.io.Serializable, GolangCloneable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALL_DESCENDANTS
All descendants files and directories.
|
static java.lang.String |
ONLY_CURRENT_FILES
Only files located in repo root.
|
| Modifier and Type | Method and Description |
|---|---|
CacheScope |
getCacheScope()
Get cache scope of this dependency.
|
java.lang.String |
getName()
The dependency's import path, e.g., golang.org/x/crypto/cmd.
|
GolangPackage |
getPackage()
Get the package this dependency stands for.
|
java.util.Set<java.lang.String> |
getSubpackages()
This dependencies sub packages.
|
java.lang.String |
getVersion()
An unique identifier to locate a dependency, e.g., git commit id.
|
boolean |
isFirstLevel()
A dependency is said to be "first-level" when it is defined in build.gradle or gogradle.lock of root project.
|
ResolvedDependency |
resolve(ResolveContext context)
Resolve to a concrete dependency which can be located to a specific version of code.
|
clonestatic final java.lang.String ALL_DESCENDANTS
static final java.lang.String ONLY_CURRENT_FILES
java.lang.String getName()
getName in interface org.gradle.api.artifacts.Dependencyjava.lang.String getVersion()
getVersion in interface org.gradle.api.artifacts.DependencyGolangPackage getPackage()
GolangPackageResolvedDependency resolve(ResolveContext context)
context - the resolve contextboolean isFirstLevel()
true if it is "first-level", false otherwise.CacheScope getCacheScope()
java.util.Set<java.lang.String> getSubpackages()