Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #876 from balinterdi/update-repositories-key-in-sa…

…mple-project

Update repositories key in sample project and tests
  • Loading branch information...
commit a24d54db3f979b45ef59b620e48f9075e40c6f0f 2 parents 751b253 + e7295dc
Phil Hagelberg authored
Showing with 5 additions and 6 deletions.
  1. +1 −2  sample.project.clj
  2. +4 −4 test/leiningen/test/deps.clj
3  sample.project.clj
View
@@ -151,10 +151,9 @@
:injections [(require 'clojure.pprint)]
;; Emit warnings on all reflection calls.
: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
;; :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"]
["sonatype" {:url "http://oss.sonatype.org/content/repositories/releases"
;; If a repository contains releases only setting
8 test/leiningen/test/deps.clj
View
@@ -44,11 +44,11 @@
(is (.contains out (format "[%s \"%s\"]" name version)))))))
(deftest ^:online test-snapshots-releases
- (let [pr (assoc sample-project :omit-default-repositories true
- :repositories {"clojars" {:url "http://clojars.org/repo/"
+ (let [pr (assoc sample-project
+ :repositories ^:replace {"clojars" {:url "http://clojars.org/repo/"
:snapshots false}})
- ps (assoc sample-project :omit-default-repositories true
- :repositories {"clojars" {:url "http://clojars.org/repo/"
+ ps (assoc sample-project
+ :repositories ^:replace {"clojars" {:url "http://clojars.org/repo/"
:releases false}})
slamhound ['slamhound "1.1.0-SNAPSHOT"]
hooke ['robert/hooke "1.0.1"]
Please sign in to comment.
Something went wrong with that request. Please try again.