(eldev-use-package-archive 'gnu-elpa)
(eldev-use-package-archive 'melpa)

;; The test suite is split across several files in `test/' that all
;; `require' the shared `projectile-test-helpers' module, so put that
;; directory on the load path when running tests.
(eldev-add-loading-roots 'test "test")

;; `projectile-consult.el' is an optional Consult integration that ships with
;; Projectile but is loaded only on demand (Consult is a soft dependency, not
;; part of Projectile's `Package-Requires').  Pull Consult in just for building
;; and testing so the module can be byte-compiled and exercised in CI.  Consult
;; requires Emacs 29.1+, so on older Emacsen we cannot install it: exclude the
;; module (and its test, which `require's it) from the build/test filesets there.
(if (version<= "29.1" emacs-version)
    (progn
      (eldev-add-extra-dependencies 'build 'consult)
      (eldev-add-extra-dependencies 'test 'consult))
  (setf eldev-standard-excludes
        `(:or ,eldev-standard-excludes
              "./projectile-consult.el"
              "./test/projectile-consult-test.el")))
