Skip to content

Instantly share code, notes, and snippets.

@jamesmacaulay
Last active November 15, 2023 01:18
Show Gist options
  • Star 31 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save jamesmacaulay/5603176 to your computer and use it in GitHub Desktop.
Save jamesmacaulay/5603176 to your computer and use it in GitHub Desktop.
My ~/.lein/profiles.clj at the moment.
{:user {:dependencies [[org.clojure/tools.namespace "0.2.3"]
[spyscope "0.1.3"]
[criterium "0.4.1"]]
:injections [(require '(clojure.tools.namespace repl find))
; try/catch to workaround an issue where `lein repl` outside a project dir
; will not load reader literal definitions correctly:
(try (require 'spyscope.core)
(catch RuntimeException e))]
:plugins [[lein-pprint "1.1.1"]
[lein-beanstalk "0.2.6"]
[lein-clojars "0.9.1"]
[lein-create-template "0.1.1"]
[lein-marginalia "0.7.1"]]}}
@ILoveHubGit
Copy link

The versions of the dependencies and plugins are quite old. Here an updated version:

{:user {:dependencies [[org.clojure/tools.namespace "1.0.0"]
                       [spyscope "0.1.6"]
                       [criterium "0.4.5"]]
        :injections [(require '(clojure.tools.namespace repl find))
                     ; try/catch to workaround an issue where `lein repl` outside a project dir
                     ; will not load reader literal definitions correctly:
                     (try (require 'spyscope.core)
                       (catch RuntimeException e))]
        :plugins [[lein-pprint "1.3.2"]
                  [lein-beanstalk "0.2.7"]
                  [lein-clojars "0.9.1"]
                  [lein-create-template "0.2.0"]
                  [lein-marginalia "0.9.1"]
                  [lein-exec "0.3.7"]
                  [lein-midje "3.2.2"]
		  [lein-kibit "0.1.8"]
		  [lein-ancient "0.6.15"]]}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment