Merge pull request #1618 from mosabua/securecentral
Switching to https for the central repo
This commit is contained in:
commit
8d6cda1dbf
6 changed files with 10 additions and 10 deletions
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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}))
|
||||
|
||||
|
|
|
@ -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"]])
|
||||
|
||||
|
|
|
@ -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/"}]]}})))))))
|
||||
|
|
|
@ -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])))
|
||||
|
|
Loading…
Reference in a new issue