Class: Dependabot::Maven::FileParser

Inherits:
FileParsers::Base
  • Object
show all
Defined in:
lib/dependabot/maven/file_parser.rb,
lib/dependabot/maven/file_parser/repositories_finder.rb,
lib/dependabot/maven/file_parser/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 Method Summary collapse

Instance Method Details

#parseObject



32
33
34
35
36
# File 'lib/dependabot/maven/file_parser.rb', line 32

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