Class: Dependabot::Maven::FileParser
- Inherits:
-
FileParsers::Base
- Object
- FileParsers::Base
- Dependabot::Maven::FileParser
- 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"
- EXTENSION_SELECTOR =
"extensions > extension"
- PROPERTY_REGEX =
Regex to get the property name from a declaration that uses a property
/\$\{(?<property>.*?)\}/.freeze
Instance Method Summary collapse
Instance Method Details
#parse ⇒ Object
33 34 35 36 37 38 |
# File 'lib/dependabot/maven/file_parser.rb', line 33 def parse dependency_set = DependencySet.new pomfiles.each { |pom| dependency_set += pomfile_dependencies(pom) } extensionfiles.each { |extension| dependency_set += extensionfile_dependencies(extension) } dependency_set.dependencies end |