Clojure 1.8.0
This commit is contained in:
parent
31021f411d
commit
51f80c1298
15 changed files with 19 additions and 18 deletions
|
@ -80,7 +80,7 @@ The `project.clj` file in the project root should look like this:
|
||||||
:description "A project for doing things."
|
:description "A project for doing things."
|
||||||
:license "Eclipse Public License 1.0"
|
:license "Eclipse Public License 1.0"
|
||||||
:url "http://github.com/technomancy/myproject"
|
:url "http://github.com/technomancy/myproject"
|
||||||
:dependencies [[org.clojure/clojure "1.5.1"]]
|
:dependencies [[org.clojure/clojure "1.8.0"]]
|
||||||
:plugins [[lein-tar "3.2.0"]])
|
:plugins [[lein-tar "3.2.0"]])
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -153,7 +153,7 @@ Your `project.clj` file will start off looking something like this:
|
||||||
:url "http://example.com/FIXME"
|
:url "http://example.com/FIXME"
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]]
|
:dependencies [[org.clojure/clojure "1.8.0"]]
|
||||||
:main ^:skip-aot my-stuff.core
|
:main ^:skip-aot my-stuff.core
|
||||||
:target-path "target/%s"
|
:target-path "target/%s"
|
||||||
:profiles {:uberjar {:aot :all}})
|
:profiles {:uberjar {:aot :all}})
|
||||||
|
@ -197,7 +197,7 @@ Leiningen version directly into the `:dependencies` vector in
|
||||||
line in the example `project.clj` above to
|
line in the example `project.clj` above to
|
||||||
|
|
||||||
```clj
|
```clj
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]
|
:dependencies [[org.clojure/clojure "1.8.0"]
|
||||||
[clj-http "2.0.0"]]
|
[clj-http "2.0.0"]]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -518,7 +518,7 @@ should look like this:
|
||||||
:url "http://example.com/FIXME"
|
:url "http://example.com/FIXME"
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]
|
:dependencies [[org.clojure/clojure "1.8.0"]
|
||||||
[clj-http "2.0.0"]]
|
[clj-http "2.0.0"]]
|
||||||
:profiles {:dev {:dependencies [[ring/ring-devel "1.4.0"]]}}
|
:profiles {:dev {:dependencies [[ring/ring-devel "1.4.0"]]}}
|
||||||
:main my.stuff
|
:main my.stuff
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
:description "Library for core functionality of Leiningen."
|
:description "Library for core functionality of Leiningen."
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]
|
:dependencies [[org.clojure/clojure "1.8.0"]
|
||||||
[bultitude "0.2.8"]
|
[bultitude "0.2.8"]
|
||||||
[classlojure "0.6.6"]
|
[classlojure "0.6.6"]
|
||||||
[robert/hooke "1.3.0"]
|
[robert/hooke "1.3.0"]
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
:url "http://example.com/FIXME"
|
:url "http://example.com/FIXME"
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]]
|
:dependencies [[org.clojure/clojure "1.8.0"]]
|
||||||
:main ^:skip-aot {{namespace}}
|
:main ^:skip-aot {{namespace}}
|
||||||
:target-path "target/%s"
|
:target-path "target/%s"
|
||||||
:profiles {:uberjar {:aot :all}})
|
:profiles {:uberjar {:aot :all}})
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
:url "http://example.com/FIXME"
|
:url "http://example.com/FIXME"
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]])
|
:dependencies [[org.clojure/clojure "1.8.0"]])
|
||||||
|
|
|
@ -266,7 +266,8 @@
|
||||||
(if (:root project)
|
(if (:root project)
|
||||||
project
|
project
|
||||||
(-> project ;; Ugh, this feels like an ugly hack
|
(-> project ;; Ugh, this feels like an ugly hack
|
||||||
(project/merge-profiles [{:dependencies '[^:top-displace [org.clojure/clojure "1.7.0"]]}])
|
(project/merge-profiles [{:dependencies [^:top-displace
|
||||||
|
['org.clojure/clojure (clojure-version)]]}])
|
||||||
(assoc :eval-in :subprocess))))
|
(assoc :eval-in :subprocess))))
|
||||||
|
|
||||||
(defn ^:no-project-needed repl
|
(defn ^:no-project-needed repl
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
(let [project (project/merge-profiles sample-failing-project
|
(let [project (project/merge-profiles sample-failing-project
|
||||||
[{:aot ^:replace []
|
[{:aot ^:replace []
|
||||||
:dependencies ^:replace
|
:dependencies ^:replace
|
||||||
[['org.clojure/clojure "1.7.0"]]}])]
|
[['org.clojure/clojure (clojure-version)]]}])]
|
||||||
(binding [main/*exit-process?* false]
|
(binding [main/*exit-process?* false]
|
||||||
(is (= "EOF while reading" (try (test project) false
|
(is (= "EOF while reading" (try (test project) false
|
||||||
(catch Exception e
|
(catch Exception e
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
":repl-options:port" "inc" "--" "repl" ":headless"]
|
":repl-options:port" "inc" "--" "repl" ":headless"]
|
||||||
["repl" (prj-map {:repl-options {:port 2}}) ":headless"]
|
["repl" (prj-map {:repl-options {:port 2}}) ":headless"]
|
||||||
|
|
||||||
[(prj-map {:dependencies [['clojure.core "1.7.0"]]})
|
[(prj-map {:dependencies [['clojure.core (clojure-version)]]})
|
||||||
":dependencies" "conj" "[slamhound \"1.1.3\"]" "--" "repl"]
|
":dependencies" "conj" "[slamhound \"1.1.3\"]" "--" "repl"]
|
||||||
["repl" (prj-map {:dependencies [['clojure.core "1.7.0"]
|
["repl" (prj-map {:dependencies [['clojure.core (clojure-version)]
|
||||||
['slamhound "1.1.3"]]})]]
|
['slamhound "1.1.3"]]})]]
|
||||||
(partition 2))]
|
(partition 2))]
|
||||||
(let [[in-prj key-path f & args] in-args
|
(let [[in-prj key-path f & args] in-args
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
:url "http://example.com/FIXME"
|
:url "http://example.com/FIXME"
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]]
|
:dependencies [[org.clojure/clojure "1.8.0"]]
|
||||||
:main bad-require.core)
|
:main bad-require.core)
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
:url "http://example.com/FIXME"
|
:url "http://example.com/FIXME"
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]])
|
:dependencies [[org.clojure/clojure "1.8.0"]])
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(defproject java-main "0.1.0-SNAPSHOT"
|
(defproject java-main "0.1.0-SNAPSHOT"
|
||||||
:java-source-paths ["src/java"]
|
:java-source-paths ["src/java"]
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]] ;; lein run errors if not there.
|
:dependencies [[org.clojure/clojure "1.8.0"]] ;; lein run errors if not there.
|
||||||
:main my.java.Main)
|
:main my.java.Main)
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
|
|
||||||
(defproject custom/args "0.0.1-SNAPSHOT"
|
(defproject custom/args "0.0.1-SNAPSHOT"
|
||||||
:description "A test project"
|
:description "A test project"
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]]
|
:dependencies [[org.clojure/clojure "1.8.0"]]
|
||||||
:profiles {:no-op {}
|
:profiles {:no-op {}
|
||||||
:ascii {:jvm-opts ["-Dfile.encoding=ASCII"]}})
|
:ascii {:jvm-opts ["-Dfile.encoding=ASCII"]}})
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
:url "http://example.com/FIXME"
|
:url "http://example.com/FIXME"
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]])
|
:dependencies [[org.clojure/clojure "1.8.0"]])
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
;; "lein new".
|
;; "lein new".
|
||||||
|
|
||||||
(defproject nomnomnom "0.5.0-SNAPSHOT"
|
(defproject nomnomnom "0.5.0-SNAPSHOT"
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]
|
:dependencies [[org.clojure/clojure "1.8.0"]
|
||||||
[janino "2.5.15"]]
|
[janino "2.5.15"]]
|
||||||
:aot :all
|
:aot :all
|
||||||
:uberjar-exclusions [#"DUMMY"])
|
:uberjar-exclusions [#"DUMMY"])
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
;; "lein new".
|
;; "lein new".
|
||||||
|
|
||||||
(defproject nomnomnom "0.5.0-SNAPSHOT"
|
(defproject nomnomnom "0.5.0-SNAPSHOT"
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]
|
:dependencies [[org.clojure/clojure "1.8.0"]
|
||||||
[janino "2.5.15"]
|
[janino "2.5.15"]
|
||||||
[org.platypope/method-fn "0.1.0"]]
|
[org.platypope/method-fn "0.1.0"]]
|
||||||
:uberjar-exclusions [#"DUMMY"]
|
:uberjar-exclusions [#"DUMMY"]
|
||||||
|
|
Loading…
Reference in a new issue