class LicenseFinder::Gradle
def current_packages
def current_packages `#{@command} downloadLicenses` xml = license_report.read options = { 'GroupTags' => { 'dependencies' => 'dependency' } } XmlSimple.xml_in(xml, options).fetch('dependency', []).map do |dep| GradlePackage.new(dep, logger: logger) end end
def initialize(options={})
def initialize(options={}) super @command = options[:gradle_command] || "gradle" end
def license_report
def license_report project_path.join('build/reports/license/dependency-license.xml') end
def package_path
def package_path project_path.join('build.gradle') end