diff --git a/maven/lib/dependabot/maven/file_parser.rb b/maven/lib/dependabot/maven/file_parser.rb index 1507f15c822..6dfee68bab6 100644 --- a/maven/lib/dependabot/maven/file_parser.rb +++ b/maven/lib/dependabot/maven/file_parser.rb @@ -63,7 +63,7 @@ def ecosystem sig { returns(Ecosystem::VersionManager) } def package_manager @package_manager ||= T.let( - PackageManager.new(maven_version), + PackageManager.new("NOT-AVAILABLE"), T.nilable(Dependabot::Maven::PackageManager) ) end @@ -71,22 +71,10 @@ def package_manager sig { returns(T.nilable(Ecosystem::VersionManager)) } def language @language ||= T.let(begin - return if package_manager.unsupported? - - Language.new(ruby_version) + Language.new("NOT-AVAILABLE") end, T.nilable(Dependabot::Maven::Language)) end - sig { returns(String) } - def ruby_version - @ruby_version ||= T.let(RUBY_VERSION, T.nilable(String)) - end - - sig { returns(String) } - def maven_version - "" - end - sig { params(pom: Dependabot::DependencyFile).returns(DependencySet) } def pomfile_dependencies(pom) dependency_set = DependencySet.new diff --git a/maven/lib/dependabot/maven/package_manager.rb b/maven/lib/dependabot/maven/package_manager.rb index 4bd5989f0a9..6a79199937a 100644 --- a/maven/lib/dependabot/maven/package_manager.rb +++ b/maven/lib/dependabot/maven/package_manager.rb @@ -12,7 +12,7 @@ module Maven PACKAGE_MANAGER = "maven" # Supported versions specified here: https://maven.apache.org/docs/history.html - SUPPORTED_MAVEN_VERSIONS = T.let([Version.new("3.6.3")].freeze, T::Array[Dependabot::Version]) + SUPPORTED_MAVEN_VERSIONS = T.let([Version.new("3")].freeze, T::Array[Dependabot::Version]) # When a version is going to be unsupported, it will be added here DEPRECATED_MAVEN_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version]) @@ -35,6 +35,16 @@ def initialize(raw_version, requirement = nil) requirement, ) end + + sig { returns(T::Boolean) } + def deprecated? + false + end + + sig { returns(T::Boolean) } + def unsupported? + false + end end end end