@@ -479,21 +479,14 @@ Added to `cider-jack-in-lein-plugins' (which see) when doing
479
479
`cider-jack-in-cljs' ." )
480
480
(put 'cider-jack-in-cljs-lein-plugins 'risky-local-variable t )
481
481
482
- (defun cider-jack-in-normalized-lein-plugins (&optional project-type )
482
+ (defun cider-jack-in-normalized-lein-plugins ()
483
483
" Return a normalized list of Leiningen plugins to be injected.
484
484
See `cider-jack-in-lein-plugins' for the format, except that the list
485
- returned by this function does not include keyword arguments.
486
-
487
- PROJECT-TYPE will be observed, for avoiding injecting plugins
488
- where it doesn't make sense."
489
- (let* ((corpus (if (and cider-enrich-classpath
490
- (eq project-type 'lein ))
491
- (append cider-jack-in-lein-plugins
492
- '((" mx.cider/enrich-classpath" " 1.8.0" )))
493
- cider-jack-in-lein-plugins))
494
- (corpus (append corpus
495
- `((" cider/cider-nrepl" , cider-injected-middleware-version )))))
496
- (thread-last corpus
485
+ returned by this function does not include keyword arguments."
486
+ (let (plugins (append cider-jack-in-lein-plugins
487
+ `((" mx.cider/enrich-classpath" " 1.8.0" )
488
+ (" cider/cider-nrepl" , cider-injected-middleware-version ))))
489
+ (thread-last plugins
497
490
(seq-filter
498
491
(lambda (spec )
499
492
(if-let* ((pred (plist-get (seq-drop spec 2 ) :predicate )))
@@ -558,16 +551,16 @@ string is quoted for passing as argument to an inferior shell."
558
551
" " )
559
552
" " params))
560
553
561
- (defun cider-boot-jack-in-dependencies (global-opts params dependencies plugins middlewares )
554
+ (defun cider-boot-jack-in-dependencies (global-opts params dependencies middlewares )
562
555
" Create boot jack-in dependencies.
563
556
Does so by concatenating GLOBAL-OPTS, DEPENDENCIES,
564
- PLUGINS and MIDDLEWARES. PARAMS and MIDDLEWARES are passed on to
565
- `cider-boot-middleware-task` before concatenating and DEPENDENCIES and PLUGINS
557
+ and MIDDLEWARES. PARAMS and MIDDLEWARES are passed on to
558
+ `cider-boot-middleware-task` before concatenating and DEPENDENCIES
566
559
are passed on to `cider-boot-dependencies`."
567
560
(concat global-opts
568
561
(unless (seq-empty-p global-opts) " " )
569
562
" -i \" (require 'cider.tasks)\" " ; ; Note the space at the end here
570
- (cider-boot-dependencies (append dependencies plugins ))
563
+ (cider-boot-dependencies (append dependencies `(( " cider/cider-nrepl " , cider-injected-middleware-version )) ))
571
564
(cider-boot-middleware-task params middlewares)))
572
565
573
566
(defun cider--lein-artifact-exclusions (exclusions )
@@ -617,9 +610,7 @@ one used."
617
610
(let* ((deps-string (string-join
618
611
(seq-map (lambda (dep )
619
612
(format " %s {:mvn/version \" %s \" }" (car dep) (cadr dep)))
620
- ; ; NOTE: injecting Lein plugins for deps.edn projects
621
- ; ; seems a bit dubious, worth revisiting at some point.
622
- (append dependencies cider-jack-in-lein-plugins))
613
+ (append dependencies `((" cider/cider-nrepl" , cider-injected-middleware-version ))))
623
614
" " ))
624
615
(middleware (mapconcat
625
616
(apply-partially #'format " %s" )
@@ -639,7 +630,7 @@ one used."
639
630
(defun cider-shadow-cljs-jack-in-dependencies (global-opts params dependencies )
640
631
" Create shadow-cljs jack-in deps.
641
632
Does so by concatenating GLOBAL-OPTS, DEPENDENCIES finally PARAMS."
642
- (let ((dependencies (append dependencies cider-jack-in-lein-plugins )))
633
+ (let ((dependencies (append dependencies `(( " cider/cider-nrepl " , cider-injected-middleware-version )) )))
643
634
(concat
644
635
global-opts
645
636
(unless (seq-empty-p global-opts) " " )
@@ -680,7 +671,7 @@ dependencies."
680
671
(cider-add-clojure-dependencies-maybe
681
672
cider-jack-in-dependencies)
682
673
cider-jack-in-dependencies-exclusions
683
- (cider-jack-in-normalized-lein-plugins project-type )
674
+ (cider-jack-in-normalized-lein-plugins)
684
675
(if cider-enrich-classpath
685
676
(append cider-jack-in-lein-middlewares
686
677
'(" cider.enrich-classpath/middleware" ))
@@ -690,7 +681,6 @@ dependencies."
690
681
params
691
682
(cider-add-clojure-dependencies-maybe
692
683
cider-jack-in-dependencies)
693
- (cider-jack-in-normalized-lein-plugins project-type)
694
684
(cider-jack-in-normalized-nrepl-middlewares)))
695
685
('clojure-cli (cider-clojure-cli-jack-in-dependencies
696
686
global-opts
0 commit comments