code: public static List<Dependency> getAllDependencies(final Module module) {
          final Set<Dependency> dependencies = new HashSet<Dependency>();
          final List<String> producedArtifacts = new ArrayList<String>();
          for(final Artifact artifact: getAllArtifacts(module)){
              producedArtifacts.add(artifact.getGavc());
          }
  
          dependencies.addAll(getAllDependencies(module, producedArtifacts));
  
          return new ArrayList<Dependency>(dependencies);
      }
docs: Returns all the dependencies of a module
  
  @param module Module
  @return List<Dependency>