Skip to content
This repository
  • 2 commits
  • 2 files changed
  • 0 comments
  • 1 contributor

Showing 2 changed files with 7 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 1  src/leiningen/pom.clj
  2. +5 2 test/leiningen/test/pom.clj
3  src/leiningen/pom.clj
@@ -119,7 +119,8 @@
119 119 [exclusion-spec]
120 120 exclusion-spec)]
121 121 [:exclusion (map (partial apply xml-tags)
122   - {:group-id (namespace dep)
  122 + {:group-id (or (namespace dep)
  123 + (name dep))
123 124 :artifact-id (name dep)
124 125 :classifier classifier
125 126 :type extension})]))
7 test/leiningen/test/pom.clj
@@ -9,10 +9,10 @@
9 9
10 10 (use-fixtures :once (fn [f]
11 11 (with-redefs [user/profiles (constantly {})]
12   - f)))
  12 + (f))))
13 13
14 14 (deftest test-pom-file-is-created
15   - (let [pom-file (file (:target-path sample-project) "pom.xml")]
  15 + (let [pom-file (file (:root sample-project) "pom.xml")]
16 16 (delete-file pom-file true)
17 17 (pom sample-project)
18 18 (is (.exists pom-file))))
@@ -183,6 +183,9 @@
183 183 (is (= ["ring-mock" nil nil nil]
184 184 (map #(first-in % [:dependency :exclusions :exclusion :artifactId])
185 185 (deep-content xml [:project :dependencies]))))
  186 + (is (= ["ring-mock" nil nil nil]
  187 + (map #(first-in % [:dependency :exclusions :exclusion :groupId])
  188 + (deep-content xml [:project :dependencies]))))
186 189 (is (= ["cla" nil nil nil]
187 190 (map #(first-in % [:dependency :exclusions :exclusion :classifier])
188 191 (deep-content xml [:project :dependencies]))))

No commit comments for this range

Something went wrong with that request. Please try again.