dependabot-gradle 0.288.0 → 0.289.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/gradle/file_parser.rb +29 -0
- data/lib/dependabot/gradle/language.rb +24 -0
- data/lib/dependabot/gradle/package_manager.rb +41 -0
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f10081065d80f21d8280e7703975cb8ef9c94fec3e06c346f4f081a8048adcc0
|
4
|
+
data.tar.gz: 47b0ed7b50d84515423903a710c474379defce7162ec93e76ac452dc3765d9f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0e3ebf34c7ef4131d8ef05b2c45b77c7f0708dce06216ab6aa494521ee2c5f6d0bf05ca026f04cad95c2f5c5b1160421e984dc7fcb4ca405651ca3e84a6accc
|
7
|
+
data.tar.gz: 0fc15b87409332db7d9d11756beea127f5d027405e602c0c8015ad514cf865ce01617e23384b031c4c37f00c339251ec57c242847ec47aff87713885d479341d
|
@@ -9,6 +9,8 @@ require "dependabot/file_parsers"
|
|
9
9
|
require "dependabot/file_parsers/base"
|
10
10
|
require "dependabot/shared_helpers"
|
11
11
|
require "dependabot/gradle/version"
|
12
|
+
require "dependabot/gradle/language"
|
13
|
+
require "dependabot/gradle/package_manager"
|
12
14
|
|
13
15
|
# The best Gradle documentation is at:
|
14
16
|
# - https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.dsl.
|
@@ -71,8 +73,35 @@ module Dependabot
|
|
71
73
|
.filter_map { |f| dependency_files.find { |bf| bf.name == f } }
|
72
74
|
end
|
73
75
|
|
76
|
+
sig { returns(Ecosystem) }
|
77
|
+
def ecosystem
|
78
|
+
@ecosystem ||= T.let(
|
79
|
+
Ecosystem.new(
|
80
|
+
name: ECOSYSTEM,
|
81
|
+
package_manager: package_manager,
|
82
|
+
language: language
|
83
|
+
),
|
84
|
+
T.nilable(Ecosystem)
|
85
|
+
)
|
86
|
+
end
|
87
|
+
|
74
88
|
private
|
75
89
|
|
90
|
+
sig { returns(Ecosystem::VersionManager) }
|
91
|
+
def package_manager
|
92
|
+
@package_manager ||= T.let(
|
93
|
+
PackageManager.new("NOT-AVAILABLE"),
|
94
|
+
T.nilable(Dependabot::Gradle::PackageManager)
|
95
|
+
)
|
96
|
+
end
|
97
|
+
|
98
|
+
sig { returns(T.nilable(Ecosystem::VersionManager)) }
|
99
|
+
def language
|
100
|
+
@language ||= T.let(begin
|
101
|
+
Language.new("NOT-AVAILABLE")
|
102
|
+
end, T.nilable(Dependabot::Gradle::Language))
|
103
|
+
end
|
104
|
+
|
76
105
|
def version_catalog_dependencies(toml_file)
|
77
106
|
dependency_set = DependencySet.new
|
78
107
|
parsed_toml_file = parsed_toml_file(toml_file)
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "sorbet-runtime"
|
5
|
+
require "dependabot/ecosystem"
|
6
|
+
require "dependabot/gradle/version"
|
7
|
+
|
8
|
+
module Dependabot
|
9
|
+
module Gradle
|
10
|
+
LANGUAGE = "jvm_languages"
|
11
|
+
|
12
|
+
class Language < Dependabot::Ecosystem::VersionManager
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
sig { params(raw_version: String).void }
|
16
|
+
def initialize(raw_version)
|
17
|
+
super(
|
18
|
+
LANGUAGE,
|
19
|
+
Version.new(raw_version)
|
20
|
+
)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "sorbet-runtime"
|
5
|
+
require "dependabot/ecosystem"
|
6
|
+
require "dependabot/gradle/version"
|
7
|
+
|
8
|
+
module Dependabot
|
9
|
+
module Gradle
|
10
|
+
ECOSYSTEM = "gradle"
|
11
|
+
PACKAGE_MANAGER = "gradle"
|
12
|
+
SUPPORTED_GRADLE_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version])
|
13
|
+
|
14
|
+
# When a version is going to be unsupported, it will be added here
|
15
|
+
DEPRECATED_GRADLE_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version])
|
16
|
+
|
17
|
+
class PackageManager < Dependabot::Ecosystem::VersionManager
|
18
|
+
extend T::Sig
|
19
|
+
|
20
|
+
sig { params(raw_version: String).void }
|
21
|
+
def initialize(raw_version)
|
22
|
+
super(
|
23
|
+
PACKAGE_MANAGER,
|
24
|
+
Version.new(raw_version),
|
25
|
+
DEPRECATED_GRADLE_VERSIONS,
|
26
|
+
SUPPORTED_GRADLE_VERSIONS
|
27
|
+
)
|
28
|
+
end
|
29
|
+
|
30
|
+
sig { returns(T::Boolean) }
|
31
|
+
def deprecated?
|
32
|
+
false
|
33
|
+
end
|
34
|
+
|
35
|
+
sig { returns(T::Boolean) }
|
36
|
+
def unsupported?
|
37
|
+
false
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-gradle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.289.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dependabot-common
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.289.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.289.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: dependabot-maven
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.289.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.289.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: debug
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -265,7 +265,9 @@ files:
|
|
265
265
|
- lib/dependabot/gradle/file_updater.rb
|
266
266
|
- lib/dependabot/gradle/file_updater/dependency_set_updater.rb
|
267
267
|
- lib/dependabot/gradle/file_updater/property_value_updater.rb
|
268
|
+
- lib/dependabot/gradle/language.rb
|
268
269
|
- lib/dependabot/gradle/metadata_finder.rb
|
270
|
+
- lib/dependabot/gradle/package_manager.rb
|
269
271
|
- lib/dependabot/gradle/requirement.rb
|
270
272
|
- lib/dependabot/gradle/update_checker.rb
|
271
273
|
- lib/dependabot/gradle/update_checker/multi_dependency_updater.rb
|
@@ -277,7 +279,7 @@ licenses:
|
|
277
279
|
- MIT
|
278
280
|
metadata:
|
279
281
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
280
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
282
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.289.0
|
281
283
|
post_install_message:
|
282
284
|
rdoc_options: []
|
283
285
|
require_paths:
|