Module: Dependabot::Gradle::Distributions

Extended by:
T::Sig
Included in:
FileUpdater::WrapperUpdater
Defined in:
lib/dependabot/gradle/distributions.rb

Constant Summary collapse

DISTRIBUTION_REPOSITORY_URL =
"https://services.gradle.org"
DISTRIBUTION_DEPENDENCY_TYPE =
"gradle-distribution"

Class Method Summary collapse

Class Method Details

.distribution_requirements?(requirements) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
16
17
# File 'lib/dependabot/gradle/distributions.rb', line 13

def self.distribution_requirements?(requirements)
  requirements.any? do |req|
    req.dig(:source, :type) == DISTRIBUTION_DEPENDENCY_TYPE
  end
end