a75a9eea4b
The prismatic/plumbing and prismatic/schema library dependencies are lagging behind the latest stable version. This will increasingly cause conflicts in trapperkeeper projects. This patch updates the dependencies and fixes several functions which were validating against schemas incompatible with the new versions. * Update project.clj dependencies * Use protocol schema instead of the protocol object directly
56 lines
2.7 KiB
Clojure
56 lines
2.7 KiB
Clojure
(def ks-version "1.0.0")
|
|
(def tk-version "1.1.0")
|
|
(def tk-jetty-version "1.2.0")
|
|
|
|
(defproject puppetlabs/http-client "0.4.4-SNAPSHOT"
|
|
:description "HTTP client wrapper"
|
|
:license {:name "Apache License, Version 2.0"
|
|
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
|
|
|
|
;; Abort when version ranges or version conflicts are detected in
|
|
;; dependencies. Also supports :warn to simply emit warnings.
|
|
;; requires lein 2.2.0+.
|
|
:pedantic? :abort
|
|
|
|
:dependencies [[org.clojure/clojure "1.6.0"]
|
|
[puppetlabs/ssl-utils "0.8.0"]
|
|
[org.clojure/tools.logging "0.2.6"]
|
|
[puppetlabs/kitchensink ~ks-version]
|
|
[org.slf4j/slf4j-api "1.7.6"]
|
|
[org.apache.httpcomponents/httpasyncclient "4.0.2"]
|
|
[org.apache.httpcomponents/httpcore "4.3.2"]
|
|
[commons-io "2.1"]
|
|
[prismatic/schema "0.4.0"]
|
|
[prismatic/plumbing "0.4.2"]]
|
|
|
|
:source-paths ["src/clj"]
|
|
:java-source-paths ["src/java"]
|
|
:jar-exclusions [#".*\.java$"]
|
|
|
|
;; By declaring a classifier here and a corresponding profile below we'll get an additional jar
|
|
;; during `lein jar` that has all the source code (including the java source). Downstream projects can then
|
|
;; depend on this source jar using a :classifier in their :dependencies.
|
|
:classifiers [["sources" :sources-jar]]
|
|
|
|
:profiles {:dev {:dependencies [[puppetlabs/kitchensink ~ks-version :classifier "test"]
|
|
[puppetlabs/trapperkeeper ~tk-version]
|
|
[puppetlabs/trapperkeeper ~tk-version :classifier "test"]
|
|
[puppetlabs/trapperkeeper-webserver-jetty9 ~tk-jetty-version]
|
|
[puppetlabs/trapperkeeper-webserver-jetty9 ~tk-jetty-version :classifier "test"]
|
|
[spyscope "0.1.4" :exclusions [clj-time]]]
|
|
:injections [(require 'spyscope.core)]
|
|
;; TK-143, enable SSLv3 for unit tests that exercise SSLv3
|
|
:jvm-opts ["-Djava.security.properties=./dev-resources/java.security"]}
|
|
:sources-jar {:java-source-paths ^:replace []
|
|
:jar-exclusions ^:replace []
|
|
:source-paths ^:replace ["src/clj" "src/java"]}}
|
|
|
|
:deploy-repositories [["releases" {:url "https://clojars.org/repo"
|
|
:username :env/clojars_jenkins_username
|
|
:password :env/clojars_jenkins_password
|
|
:sign-releases false}]]
|
|
|
|
:lein-release {:scm :git
|
|
:deploy-via :lein-deploy}
|
|
|
|
:plugins [[lein-release "1.0.5" :exclusions [org.clojure/clojure]]])
|