Class: BuildrDependencyExtensions::MavenVersionConflictResolver

Inherits:
ResolverBase
  • Object
show all
Defined in:
lib/buildr-dependency-extensions/resolver.rb

Instance Method Summary collapse

Methods inherited from ResolverBase

#initialize, #resolve_from_hash, #resolved

Constructor Details

This class inherits a constructor from BuildrDependencyExtensions::ResolverBase

Instance Method Details

#resolve(artifact, all_artifacts) ⇒ Object



33
34
35
36
37
38
39
40
41
42
# File 'lib/buildr-dependency-extensions/resolver.rb', line 33

def resolve artifact, all_artifacts
  version = resolve_from_hash artifact
  if version
    version
  else
    all_versions = HelperFunctions.get_all_versions_sorted_by_depth(artifact, all_artifacts).uniq
    resolved artifact, all_versions[0]
    all_versions[0]
  end
end