Merge pull request #1618 from mosabua/securecentral

Switching to https for the central repo
This commit is contained in:
Phil Hagelberg 2014-08-01 16:44:55 -07:00
commit 8d6cda1dbf
6 changed files with 10 additions and 10 deletions

View file

@ -22,7 +22,7 @@ Add `[lein-pprint "1.1.1"]` to `:plugins`.
:jar-exclusions [#"^\."],
:test-path ("/home/phil/src/leiningen/lein-pprint/test"),
:repositories
(["central" {:url "http://repo1.maven.org/maven2"}]
(["central" {:url "https://repo1.maven.org/maven2"}]
["clojars" {:url "http://clojars.org/repo/"}]),
:uberjar-exclusions [#"^META-INF/DUMMY.SF"],
:eval-in :leiningen,

View file

@ -43,7 +43,7 @@
<repositories>
<repository>
<id>central</id>
<url>http://repo1.maven.org/maven2/</url>
<url>https://repo1.maven.org/maven2/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>

View file

@ -278,7 +278,7 @@
(def default-repositories
(with-meta
[["central" {:url "http://repo1.maven.org/maven2/" :snapshots false}]
[["central" {:url "https://repo1.maven.org/maven2/" :snapshots false}]
["clojars" {:url "https://clojars.org/repo/"}]]
{:reduce reduce-repo-step}))

View file

@ -10,7 +10,7 @@
;; reproduce the bug; IRL maps got converted to seqs somehow or
;; another anyhow, but apparently not by init-project.
:mirrors [["central" {:name "foo"
:url "http://repo1.maven.org/maven2/"}]]
:url "https://repo1.maven.org/maven2/"}]]
;; Have to have a plugin to reproduce
:plugins [[lein-pprint "1.1.1"]])

View file

@ -47,7 +47,7 @@
:exclusions [[org.clojure/clojure]]]],
:twelve 12 ; testing unquote
:repositories [["central" {:url "http://repo1.maven.org/maven2/"
:repositories [["central" {:url "https://repo1.maven.org/maven2/"
:snapshots false}]
["clojars" {:url "https://clojars.org/repo/"}]]})
@ -526,7 +526,7 @@
(abort-msg
#'project/warn-user-repos
{:user {:repositories
{"central" {:url "http://repo1.maven.org/maven2/"
{"central" {:url "https://repo1.maven.org/maven2/"
:snapshots false}
"clojars" {:url "https://clojars.org/repo/"}}}}))))
(testing "with no suppression,"
@ -539,7 +539,7 @@
(abort-msg
#'project/warn-user-repos
{:user {:repositories
{"central" {:url "http://repo1.maven.org/maven2/"
{"central" {:url "https://repo1.maven.org/maven2/"
:snapshots false}
"clojars" {:url "https://clojars.org/repo/"}}}}))))
(testing "Warning with user level repo"
@ -548,7 +548,7 @@
(abort-msg
#'project/warn-user-repos
{:user {:repositories
{"central" "http://repo1.maven.org/maven2/"
{"central" "https://repo1.maven.org/maven2/"
"clojars" "https://clojars.org/repo/"}}}))))
(testing "Warning with user level repo"
(is (re-find
@ -557,6 +557,6 @@
#'project/warn-user-repos
{:user
{:repositories
[["central" {:url "http://repo1.maven.org/maven2/"
[["central" {:url "https://repo1.maven.org/maven2/"
:snapshots false}]
["clojars" {:url "https://clojars.org/repo/"}]]}})))))))

View file

@ -66,7 +66,7 @@
(map #(first-in % [:repository :id])
(deep-content xml [:project :repositories])))
"repositories are named")
(is (= ["http://repo1.maven.org/maven2/" "https://clojars.org/repo/"
(is (= ["https://repo1.maven.org/maven2/" "https://clojars.org/repo/"
"http://example.com/repo"]
(map #(first-in % [:repository :url])
(deep-content xml [:project :repositories])))