Class: LicenseFinder::GradleDependencyFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/license_finder/package_utils/gradle_dependency_finder.rb

Instance Method Summary collapse

Constructor Details

#initialize(project_path) ⇒ GradleDependencyFinder

Returns a new instance of GradleDependencyFinder.



5
6
7
# File 'lib/license_finder/package_utils/gradle_dependency_finder.rb', line 5

def initialize(project_path)
  @project_path = project_path
end

Instance Method Details

#dependenciesObject



9
10
11
12
13
# File 'lib/license_finder/package_utils/gradle_dependency_finder.rb', line 9

def dependencies
  Pathname
    .glob(@project_path.join('**', 'dependency-license.xml'))
    .map(&:read)
end