Class: Dependabot::FileParsers::Java::Maven

Inherits:
Base
  • Object
show all
Defined in:
lib/dependabot/file_parsers/java/maven.rb,
lib/dependabot/file_parsers/java/maven/repositories_finder.rb,
lib/dependabot/file_parsers/java/maven/property_value_finder.rb

Defined Under Namespace

Classes: PropertyValueFinder, RepositoriesFinder

Constant Summary collapse

DEPENDENCY_SELECTOR =

The following “dependencies” are candidates for updating:

  • The project’s parent

  • Any dependencies (incl. those in dependencyManagement or plugins)

  • Any plugins (incl. those in pluginManagement)

  • Any extensions

"project > parent, "\
"dependencies > dependency, "\
"extensions > extension"
PLUGIN_SELECTOR =
"plugins > plugin"
PROPERTY_REGEX =

Regex to get the property name from a declaration that uses a property

/\$\{(?<property>.*?)\}/.freeze

Instance Attribute Summary

Attributes inherited from Base

#credentials, #dependency_files, #source

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Dependabot::FileParsers::Base

Instance Method Details

#parseObject



31
32
33
34
35
# File 'lib/dependabot/file_parsers/java/maven.rb', line 31

def parse
  dependency_set = DependencySet.new
  pomfiles.each { |pom| dependency_set += pomfile_dependencies(pom) }
  dependency_set.dependencies
end