Module: Dependabot::Maven::Distributions
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/maven/distributions.rb
Constant Summary collapse
- DISTRIBUTION_DEPENDENCY_TYPE =
Used to distinguish wrapper requirements (which live in maven-wrapper.properties) from regular POM requirements (which live in pom.xml)
"maven-distribution"- MAVEN_DISTRIBUTION_PACKAGE =
Maven and the maven-wrapper plugin release independently with separate cadences. Tracking them as distinct dependencies allows users to update each on their own schedule. Users who prefer batched updates can use grouped updates.
"org.apache.maven:apache-maven"- MAVEN_WRAPPER_PACKAGE =
"org.apache.maven.wrapper:maven-wrapper"
Class Method Summary collapse
Class Method Details
.distribution_requirements?(requirements) ⇒ Boolean
23 24 25 26 27 28 |
# File 'lib/dependabot/maven/distributions.rb', line 23 def self.distribution_requirements?(requirements) # Returns true if any requirement came from a maven-wrapper.properties # file rather than a pom.xml. Used as the primary guard throughout the # updater pipeline to short-circuit non-wrapper paths. requirements.any? { |req| req.source_string("type") == DISTRIBUTION_DEPENDENCY_TYPE } end |