简体   繁体   中英

`lein new midje myproject` using old midje and clojure versions

I noted that lein new midje myproject uses clojure 1.4.0 and midje 1.5.1 instead of 1.7.0 and 1.7.0 .

How can I tell lein new midje ... to use the latest versions? Here is my ? project.clj file:

(defproject myproject "0.0.1-SNAPSHOT"
  :description "Cool new project to do things and stuff"
  :dependencies [[org.clojure/clojure "1.4.0"]]
  :profiles {:dev {:dependencies [[midje "1.5.1"]]}})



lein version
> Leiningen 2.5.1 on Java 1.7.0_55 OpenJDK 64-Bit Server VM

ls ~/.m2/repository/midje/lein-template
> resolver-status.properties

The update flag will force an update of dependency snapshots. You might try this-

lein -U new midje myproject

Running lein help will give a bit more detail-

Global Options:
-o             Run a task offline.
-U             Run a task after forcing update of snapshots.
-h, --help     Print this help or help for a specific task.
-v, --version  Print Leiningen's version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM