dependabot-gradle 0.400.0 → 0.402.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c86b62e9663f82774e2b9c71c9c6adcd6b81283d2b0c80331e9eb5952aff4df
|
|
4
|
+
data.tar.gz: 0713bcd3034a64e93ade1f7598632ba5d3b081a392c631e7b6f0afe71f90de54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56cd5b5d7860377e56469318fa7546991a70214529d6bc53f96ca0d7ce7f7767d30f73473995a213f64a5b50b933f79905e17b1ddfbc66a080e7f9990e70efea
|
|
7
|
+
data.tar.gz: 5e9da8492fc2fb8c540829c1c10ff7a3e1689f5bba13be4dace1f9f5a664b17a358448e98aeb7456fd198e8f482be8c1c07f93596bea2e5dc90b753ded32f682
|
|
@@ -82,8 +82,12 @@ module Dependabot
|
|
|
82
82
|
|
|
83
83
|
private
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
# Builds can include themselves or each other (e.g. `includeBuild(".")` or a child build
|
|
86
|
+
# that includes its parent with `includeBuild("..")`), so each build is only visited once.
|
|
87
|
+
sig { params(root_dir: String, visited: T::Set[String]).returns(T::Array[DependencyFile]) }
|
|
88
|
+
def all_buildfiles_in_build(root_dir, visited = Set.new)
|
|
89
|
+
return [] unless visited.add?(root_dir)
|
|
90
|
+
|
|
87
91
|
files = [buildfile(root_dir), settings_file(root_dir), version_catalog_file(root_dir), lockfile(root_dir),
|
|
88
92
|
properties_file(root_dir)]
|
|
89
93
|
.compact
|
|
@@ -94,7 +98,7 @@ module Dependabot
|
|
|
94
98
|
files += convention_plugin_source_files(files, root_dir)
|
|
95
99
|
|
|
96
100
|
files + included_builds(root_dir)
|
|
97
|
-
.flat_map { |dir| all_buildfiles_in_build(dir) }
|
|
101
|
+
.flat_map { |dir| all_buildfiles_in_build(dir, visited) }
|
|
98
102
|
end
|
|
99
103
|
|
|
100
104
|
# Only fetch source trees for *nested* project directories (e.g. "build-logic/convention"
|
|
@@ -146,13 +146,13 @@ module Dependabot
|
|
|
146
146
|
end
|
|
147
147
|
|
|
148
148
|
repository_blocks.each do |block|
|
|
149
|
-
repository_urls << GOOGLE_MAVEN_REPO if block.match?(/\sgoogle
|
|
149
|
+
repository_urls << GOOGLE_MAVEN_REPO if block.match?(/\sgoogle(?:\(|\s*\{)/)
|
|
150
150
|
|
|
151
|
-
repository_urls << central_repo_url if block.match?(/\smavenCentral
|
|
151
|
+
repository_urls << central_repo_url if block.match?(/\smavenCentral(?:\(|\s*\{)/)
|
|
152
152
|
|
|
153
|
-
repository_urls << "https://jcenter.bintray.com/" if block.match?(/\sjcenter
|
|
153
|
+
repository_urls << "https://jcenter.bintray.com/" if block.match?(/\sjcenter(?:\(|\s*\{)/)
|
|
154
154
|
|
|
155
|
-
repository_urls << GRADLE_PLUGINS_REPO if block.match?(/\sgradlePluginPortal
|
|
155
|
+
repository_urls << GRADLE_PLUGINS_REPO if block.match?(/\sgradlePluginPortal(?:\(|\s*\{)/)
|
|
156
156
|
|
|
157
157
|
block.scan(MAVEN_REPO_REGEX) do
|
|
158
158
|
repository_urls << T.must(T.must(Regexp.last_match).named_captures.fetch("url"))
|
|
@@ -41,7 +41,8 @@ module Dependabot
|
|
|
41
41
|
DEPENDENCY_DECLARATION_REGEX = /(?:\(|\s)\s*['"](?<declaration>#{PART}:#{PART}:#{VSN_PART})['"]/o
|
|
42
42
|
|
|
43
43
|
DEPENDENCY_SET_DECLARATION_REGEX = /(?:^|\s)dependencySet\((?<arguments>[^\)]+)\)\s*\{/
|
|
44
|
-
|
|
44
|
+
DEPENDENCY_SET_COORDINATES_REGEX = /\A\s*['"](?<group>#{PART}):(?<version>#{VSN_PART})['"]\s*\z/o
|
|
45
|
+
DEPENDENCY_SET_ENTRY_REGEX = /\bentry(?:\s+|\s*\(\s*)['"](?<name>#{PART})['"]/o
|
|
45
46
|
PLUGIN_BLOCK_DECLARATION_REGEX = /(?:^|\s)plugins\s*\{/
|
|
46
47
|
PLUGIN_ID_REGEX = /['"](?<id>#{PART})['"]/o
|
|
47
48
|
DEPENDENCY_SUBSTITUTION_DECLARATION_REGEX = /\bdependencySubstitution\s*\{/
|
|
@@ -466,9 +467,7 @@ module Dependabot
|
|
|
466
467
|
end
|
|
467
468
|
|
|
468
469
|
dependency_set_blocks.each do |blk|
|
|
469
|
-
|
|
470
|
-
group = argument_from_string(arguments, "group")
|
|
471
|
-
version = argument_from_string(arguments, "version")
|
|
470
|
+
group, version = dependency_set_group_and_version(T.must(blk[:arguments]))
|
|
472
471
|
|
|
473
472
|
next unless group && version
|
|
474
473
|
|
|
@@ -485,6 +484,18 @@ module Dependabot
|
|
|
485
484
|
dependency_set
|
|
486
485
|
end
|
|
487
486
|
|
|
487
|
+
# Groovy builds usually declare `dependencySet(group: 'g', version: 'v')`, while the Kotlin DSL only
|
|
488
|
+
# supports the `dependencySet("g:v")` coordinates form (which Groovy accepts as well).
|
|
489
|
+
sig { params(arguments: String).returns([T.nilable(String), T.nilable(String)]) }
|
|
490
|
+
def dependency_set_group_and_version(arguments)
|
|
491
|
+
group = argument_from_string(arguments, "group")
|
|
492
|
+
version = argument_from_string(arguments, "version")
|
|
493
|
+
return [group, version] if group && version
|
|
494
|
+
|
|
495
|
+
coordinates = arguments.match(DEPENDENCY_SET_COORDINATES_REGEX)
|
|
496
|
+
[coordinates&.[](:group), coordinates&.[](:version)]
|
|
497
|
+
end
|
|
498
|
+
|
|
488
499
|
sig { params(buildfile: Dependabot::DependencyFile).returns(DependencySet) }
|
|
489
500
|
def plugin_dependencies(buildfile)
|
|
490
501
|
dependency_set = DependencySet.new
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dependabot-gradle
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.402.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dependabot
|
|
@@ -15,28 +15,28 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.
|
|
18
|
+
version: 0.402.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.
|
|
25
|
+
version: 0.402.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: dependabot-maven
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - '='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0.
|
|
32
|
+
version: 0.402.0
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - '='
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0.
|
|
39
|
+
version: 0.402.0
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: debug
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -291,7 +291,7 @@ licenses:
|
|
|
291
291
|
- MIT
|
|
292
292
|
metadata:
|
|
293
293
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
|
294
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
|
294
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.402.0
|
|
295
295
|
rdoc_options: []
|
|
296
296
|
require_paths:
|
|
297
297
|
- lib
|