Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65215ed

Browse files
committed
clarify profiles.clj setup for lein-try
1 parent 76b8e0c commit 65215ed

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

kitchen-sink/trying-a-library-without-a-project/trying-a-library-without-a-project.asciidoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ You want to try a library in the REPL without having to create an unwanted proje
1111
Use Ryan Neufeld's +lein-try+ to launch the REPL. Library dependencies will be met automatically.
1212

1313
To gain this capability, first make sure you are using Leiningen >= 2.1.3.
14-
Then edit your +~/.lein/profiles.clj+ file. Add the following to the +:plugins+ vector of the +:user+ profile:
14+
Then edit your +~/.lein/profiles.clj+ file. Add +[lein-try "0.3.0"]+ to the +:plugins+ vector of the +:user+ profile:
1515

1616
[source,clojure]
1717
----
18-
[lein-try "0.3.0"]
18+
;; ~/.lein/profiles.clj
19+
20+
{:user {:plugins [[lein-difftest "2.0.0"]
21+
[lein-swank "1.4.4"]
22+
[lein-try "0.3.0"]]}}
1923
----
2024

2125
Now you can experience nearly instant gratification with the library of your choice:
@@ -34,7 +38,7 @@ Clojure 1.5.1
3438
Javadoc: (javadoc java-object-or-class-here)
3539
Exit: Control+D or (exit) or (quit)
3640
37-
user=>
41+
user=>
3842
----
3943

4044
===== Discussion

0 commit comments

Comments
 (0)