Class: Dependabot::Gradle::FileUpdater
- Inherits:
-
FileUpdaters::Base
- Object
- FileUpdaters::Base
- Dependabot::Gradle::FileUpdater
show all
- Defined in:
- lib/dependabot/gradle/file_updater.rb,
lib/dependabot/gradle/file_updater/dependency_set_updater.rb,
lib/dependabot/gradle/file_updater/property_value_updater.rb
Defined Under Namespace
Classes: DependencySetUpdater, PropertyValueUpdater
Constant Summary
collapse
- SUPPORTED_BUILD_FILE_NAMES =
%w(build.gradle build.gradle.kts).freeze
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.updated_files_regex ⇒ Object
15
16
17
|
# File 'lib/dependabot/gradle/file_updater.rb', line 15
def self.updated_files_regex
[/^build\.gradle(\.kts)?$/, %r{/build\.gradle(\.kts)?$}]
end
|
Instance Method Details
#updated_dependency_files ⇒ Object
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/dependabot/gradle/file_updater.rb', line 19
def updated_dependency_files
updated_files = buildfiles.dup
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
|