Update project.clj for v4

This commit is contained in:
Peter Taoussanis 2015-05-25 19:46:28 +07:00
parent 2dd0121352
commit 94caaa5fbc
2 changed files with 72 additions and 21 deletions

View File

@ -1,6 +1,6 @@
(defproject com.taoensso/timbre "3.4.0"
(defproject com.taoensso/timbre "4.0.0-SNAPSHOT"
:author "Peter Taoussanis <https://www.taoensso.com>"
:description "Clojure logging & profiling library"
:description "Clojure/Script logging & profiling library"
:url "https://github.com/ptaoussanis/timbre"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"
@ -8,42 +8,93 @@
:comments "Same as Clojure"}
:min-lein-version "2.3.3"
:global-vars {*warn-on-reflection* true
*assert* true}
*assert* true}
:dependencies
[[org.clojure/clojure "1.4.0"]
[com.taoensso/encore "1.24.1"]
[io.aviso/pretty "0.1.17"]]
[com.taoensso/encore "1.30.0"]
[io.aviso/pretty "0.1.18"]]
:plugins
[[lein-pprint "1.1.2"]
[lein-ancient "0.6.7"]
[lein-expectations "0.0.8"]
[lein-autoexpect "1.4.3"]
[codox "0.8.12"]]
:profiles
{;; :default [:base :system :user :provided :dev]
:server-jvm {:jvm-opts ^:replace ["-server"]}
:1.5 {:dependencies [[org.clojure/clojure "1.5.1"]]}
:1.6 {:dependencies [[org.clojure/clojure "1.6.0"]]}
:1.7 {:dependencies [[org.clojure/clojure "1.7.0-RC1"]]}
:test {:dependencies [[expectations "2.1.0"]
[org.clojure/test.check "0.7.0"]
[org.clojure/tools.logging "0.3.1"]
;; Appender dependencies
[com.taoensso/nippy "2.8.0"]
[com.taoensso/carmine "2.9.2"]
;; Appender deps
[com.taoensso/nippy "2.9.0-RC2"]
[com.taoensso/carmine "2.10.0"]
[com.draines/postal "1.11.3"]
[irclj "0.5.0-alpha4"]]
:plugins [[lein-expectations "0.0.8"]
[lein-autoexpect "1.4.2"]]}
[irclj "0.5.0-alpha4"]]}
:dev
[:1.6 :test
{:dependencies []
:plugins [[lein-ancient "0.6.4"]
[codox "0.8.11"]]}]}
[:1.7 :test
{:dependencies [[org.clojure/clojurescript "0.0-3297"]]
:plugins
[;; These must be in :dev, Ref. https://github.com/lynaghk/cljx/issues/47:
[com.keminglabs/cljx "0.6.0"]
[lein-cljsbuild "1.0.6"]]}]}
:test-paths ["test" "src"]
;; :jar-exclusions [#"\.cljx|\.DS_Store"]
:source-paths ["src" "target/classes"]
:test-paths ["src" "test" "target/test-classes"]
:cljx
{:builds
[{:source-paths ["src"] :rules :clj :output-path "target/classes"}
{:source-paths ["src"] :rules :cljs :output-path "target/classes"}
{:source-paths ["src" "test"] :rules :clj :output-path "target/test-classes"}
{:source-paths ["src" "test"] :rules :cljs :output-path "target/test-classes"}]}
:cljsbuild
{:test-commands {"node" ["node" :node-runner "target/tests.js"]
;; "phantom" ["phantomjs" :runner "target/tests.js"]
}
:builds
;; TODO Parallel builds currently cause issues with Expectations v2.1.0,
;; Ref. http://goo.gl/8LDHe5
[{:id "main"
:source-paths ["src" "target/classes"]
;; :notify-command ["terminal-notifier" "-title" "cljsbuild" "-message"]
:compiler {:output-to "target/main.js"
:optimizations :advanced
:pretty-print false}}
{:id "tests"
:source-paths ["src" "target/classes" "test" "target/test-classes"]
:notify-command ["node" "target/tests.js"]
:compiler {:output-to "target/tests.js"
:optimizations :simple ; Necessary for node.js
:pretty-print true
:target :nodejs
:hashbang false ; Ref. http://goo.gl/vrtNDR
:main "taoensso.encore.tests"}}]}
:auto-clean false
:prep-tasks [["cljx" "once"] "javac" "compile"]
:codox {:language :clojure ; [:clojure :clojurescript] cljsbuild ; No support?
:sources ["target/classes"]
:src-linenum-anchor-prefix "L"
:src-dir-uri "http://github.com/ptaoussanis/encore/blob/master/src/"
:src-uri-mapping {#"target/classes"
#(.replaceFirst (str %) "(.cljs$|.clj$)" ".cljx")}}
:aliases
{"test-all" ["with-profile" "default:+1.5:+1.6" "expectations"]
;; "test-all" ["with-profile" "default:+1.6" "expectations"]
{"test-all" ["do" "clean," "cljx" "once,"
"with-profile" "default:+1.5:+1.6:+1.7" "expectations,"
"with-profile" "+test" "cljsbuild" "test"]
"test-auto" ["with-profile" "+test" "autoexpect"]
"deploy-lib" ["do" "deploy" "clojars," "install"]
"build-once" ["do" "clean," "cljx" "once," "cljsbuild" "once" "main"]
"deploy-lib" ["do" "build-once," "deploy" "clojars," "install"]
"start-dev" ["with-profile" "+server-jvm" "repl" ":headless"]}
:repositories {"sonatype-oss-public"

View File

@ -9,4 +9,4 @@
(defn- before-run {:expectations-options :before-run} [])
(defn- after-run {:expectations-options :after-run} [])
(expect true) ; TODO Add tests (PRs welcome!)
(expect true)