@@ -28,29 +28,28 @@ local Binaries = require("neotest-java.command.binaries")
2828
2929local SpecBuilder = {}
3030
31+ local should_not_reach_here = function ()
32+ error (" should not reach here" )
33+ end
34+
3135--- @type neotest-java.BuildSpecDependencies
3236local DEFAULT_DEPENDENCIES = {
33- mkdir = function ()
34- error (" should not reach here" )
35- end ,
36-
37- chdir = function ()
38- error (" should not reach here" )
39- end ,
40-
41- root_getter = function ()
42- error (" should not reach here" )
43- end ,
44-
37+ binaries = Binaries ({
38+ client_provider = should_not_reach_here ,
39+ }),
40+ mkdir = should_not_reach_here ,
41+ chdir = should_not_reach_here ,
42+ root_getter = should_not_reach_here ,
43+ classpath_provider = ClasspathProvider ({ client_provider = should_not_reach_here }),
44+
45+ -- TODO: pending to remove dependencies from this scope
4546 scan = scan ,
46-
4747 compile = function (cwd , compile_mode )
4848 compilers .lsp .compile ({
4949 base_dir = cwd ,
5050 compile_mode = compile_mode ,
5151 })
5252 end ,
53- classpath_provider = ClasspathProvider ({ client_provider = client_provider }),
5453 report_folder_name_gen = function (module_dir , build_dir )
5554 local base = (module_dir and module_dir :append (build_dir :to_string ())) or build_dir
5655 return base :append (" junit-reports" ):append (nio .fn .strftime (" %d%m%y%H%M%S" ))
@@ -61,7 +60,6 @@ local DEFAULT_DEPENDENCIES = {
6160 detect_project_type = function (base_dir )
6261 return detect_project_type (base_dir )
6362 end ,
64- binaries = Binaries ({ client_provider = client_provider }),
6563}
6664
6765--- @param args neotest.RunArgs
0 commit comments