Class GlideDependencyFactory
- java.lang.Object
-
- com.github.blindpirate.gogradle.core.dependency.produce.ExternalDependencyFactory
-
- com.github.blindpirate.gogradle.core.dependency.produce.external.glide.GlideDependencyFactory
-
@Singleton public class GlideDependencyFactory extends ExternalDependencyFactory
Converts glide.lock in repos managed by glide to gogradle map notations.- See Also:
- glide
-
-
Field Summary
-
Fields inherited from class com.github.blindpirate.gogradle.core.dependency.produce.ExternalDependencyFactory
mapNotationParser, packagePathResolver
-
-
Constructor Summary
Constructors Constructor Description GlideDependencyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>>adapt(java.io.File file)protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>>adaptTest(java.io.File file)In most cases, this method won't be used because all we need is build dependencies of external package.java.lang.StringidentityFileName()Relative paths of the identity file.-
Methods inherited from class com.github.blindpirate.gogradle.core.dependency.produce.ExternalDependencyFactory
canRecognize, extractNotations, produce
-
-
-
-
Method Detail
-
identityFileName
public java.lang.String identityFileName()
Description copied from class:ExternalDependencyFactoryRelative paths of the identity file. For example, "Godeps/Godeps.json", "glide.yaml"- Specified by:
identityFileNamein classExternalDependencyFactory- Returns:
- name of that file
-
adapt
protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> adapt(java.io.File file)
- Specified by:
adaptin classExternalDependencyFactory
-
adaptTest
protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> adaptTest(java.io.File file)
Description copied from class:ExternalDependencyFactoryIn most cases, this method won't be used because all we need is build dependencies of external package. However, when gogradle is building a golang project which was originally managed by an external management tool, this method will be used to analyze test dependencies of the project.- Overrides:
adaptTestin classExternalDependencyFactory- Parameters:
file- the identity file- Returns:
- test dependency of this identity file
-
-