Merge pull request #876 from balinterdi/update-repositories-key-in-sample-project
Update repositories key in sample project and tests
This commit is contained in:
commit
a24d54db3f
2 changed files with 5 additions and 6 deletions
|
@ -151,10 +151,9 @@
|
||||||
:injections [(require 'clojure.pprint)]
|
:injections [(require 'clojure.pprint)]
|
||||||
;; Emit warnings on all reflection calls.
|
;; Emit warnings on all reflection calls.
|
||||||
:warn-on-reflection true
|
:warn-on-reflection true
|
||||||
;; Set this in order to only use the :repositories you list below.
|
|
||||||
:omit-default-repositories true
|
|
||||||
;; These repositories will be searched for :dependencies and
|
;; These repositories will be searched for :dependencies and
|
||||||
;; :plugins and will also be available to deploy to.
|
;; :plugins and will also be available to deploy to.
|
||||||
|
;; Add ^:replace (:repositories ^:replace [...]) to only use repositories you list below
|
||||||
:repositories [["java.net" "http://download.java.net/maven/2"]
|
:repositories [["java.net" "http://download.java.net/maven/2"]
|
||||||
["sonatype" {:url "http://oss.sonatype.org/content/repositories/releases"
|
["sonatype" {:url "http://oss.sonatype.org/content/repositories/releases"
|
||||||
;; If a repository contains releases only setting
|
;; If a repository contains releases only setting
|
||||||
|
|
|
@ -44,11 +44,11 @@
|
||||||
(is (.contains out (format "[%s \"%s\"]" name version)))))))
|
(is (.contains out (format "[%s \"%s\"]" name version)))))))
|
||||||
|
|
||||||
(deftest ^:online test-snapshots-releases
|
(deftest ^:online test-snapshots-releases
|
||||||
(let [pr (assoc sample-project :omit-default-repositories true
|
(let [pr (assoc sample-project
|
||||||
:repositories {"clojars" {:url "http://clojars.org/repo/"
|
:repositories ^:replace {"clojars" {:url "http://clojars.org/repo/"
|
||||||
:snapshots false}})
|
:snapshots false}})
|
||||||
ps (assoc sample-project :omit-default-repositories true
|
ps (assoc sample-project
|
||||||
:repositories {"clojars" {:url "http://clojars.org/repo/"
|
:repositories ^:replace {"clojars" {:url "http://clojars.org/repo/"
|
||||||
:releases false}})
|
:releases false}})
|
||||||
slamhound ['slamhound "1.1.0-SNAPSHOT"]
|
slamhound ['slamhound "1.1.0-SNAPSHOT"]
|
||||||
hooke ['robert/hooke "1.0.1"]
|
hooke ['robert/hooke "1.0.1"]
|
||||||
|
|
Loading…
Reference in a new issue