Class: Dependabot::Maven::FileParser
- Inherits:
-
FileParsers::Base
- Object
- FileParsers::Base
- Dependabot::Maven::FileParser
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/maven/file_parser.rb,
lib/dependabot/maven/file_parser/pom_fetcher.rb,
lib/dependabot/maven/file_parser/repositories_finder.rb,
lib/dependabot/maven/file_parser/property_value_finder.rb
Defined Under Namespace
Classes: PomFetcher, 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, " \ "annotationProcessorPaths > path"
- PLUGIN_SELECTOR =
"plugins > plugin"
- EXTENSION_SELECTOR =
"extensions > extension"
- PLUGIN_ARTIFACT_ITEMS_SELECTOR =
"plugins > plugin > executions > execution > " \ "configuration > artifactItems > artifactItem"
- PROPERTY_REGEX =
Regex to get the property name from a declaration that uses a property
/\$\{(?<property>.*?)\}/
Instance Method Summary collapse
Instance Method Details
#parse ⇒ Object
40 41 42 43 44 45 |
# File 'lib/dependabot/maven/file_parser.rb', line 40 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 |