Class: Dependabot::FileUpdaters::Java::Gradle
- Defined in:
- lib/dependabot/file_updaters/java/gradle.rb,
lib/dependabot/file_updaters/java/gradle/dependency_set_updater.rb,
lib/dependabot/file_updaters/java/gradle/property_value_updater.rb
Defined Under Namespace
Classes: DependencySetUpdater, PropertyValueUpdater
Instance Attribute Summary
Attributes inherited from Base
#credentials, #dependencies, #dependency_files
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Dependabot::FileUpdaters::Base
Class Method Details
.updated_files_regex ⇒ Object
13 14 15 |
# File 'lib/dependabot/file_updaters/java/gradle.rb', line 13 def self.updated_files_regex [/^build\.gradle$/, %r{/build\.gradle$}] end |
Instance Method Details
#updated_dependency_files ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/dependabot/file_updaters/java/gradle.rb', line 17 def updated_dependency_files updated_files = buildfiles.dup # Loop through each of the changed requirements, applying changes to # all buildfiles for that change. Note that the logic is different # here to other languages because Java has property inheritance across # files (although we're not supporting it for gradle yet). dependencies.each do |dependency| updated_files = update_buildfiles_for_dependency( buildfiles: updated_files, dependency: dependency ) end updated_files = updated_files.reject { |f| buildfiles.include?(f) } raise "No files changed!" if updated_files.none? updated_files end |