Class ExternalDependencyFactory

    • Constructor Detail

      • ExternalDependencyFactory

        public ExternalDependencyFactory()
    • Method Detail

      • identityFileName

        public abstract java.lang.String identityFileName()
        Relative paths of the identity file. For example, "Godeps/Godeps.json", "glide.yaml"
        Returns:
        name of that file
      • extractNotations

        public java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> extractNotations​(ResolvedDependency parent,
                                                                                                       java.io.File rootDir,
                                                                                                       java.lang.String configuration)
      • canRecognize

        public boolean canRecognize​(java.io.File rootDir)
      • adaptTest

        protected java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> adaptTest​(java.io.File identityFile)
        In 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.
        Parameters:
        identityFile - the identity file
        Returns:
        test dependency of this identity file
      • adapt

        protected abstract java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> adapt​(java.io.File file)