这里有一个补丁,增加了支持
从 aec6d48bf828ccdd076be248738155d97fa04477 Mon Sep 17 00:00:00 2001
发送者:Thomas Spellman <
[email protected]>
日期: Sat, 22 Feb 2020 22:09:49 -0800
主题: [补丁] 支持在生成 pom.xml 时在 deps map 中使用 :scope
---
src/main/clojure/clojure/tools/deps/alpha/gen/pom.clj | 7 +++++--
1 文件已更改,5 插入(+),2 删除(-)
diff --git a/src/main/clojure/clojure/tools/deps/alpha/gen/pom.clj b/src/main/clojure/clojure/tools/deps/alpha/gen/pom.clj
索引 303ae93..1f24d31 100644
--- a/src/main/clojure/clojure/tools/deps/alpha/gen/pom.clj
+++ b/src/main/clojure/clojure/tools/deps/alpha/gen/pom.clj
@@ -21,7 +21,7 @@
(xml/alias-uri 'pom "
http://maven.apache.org/POM/4.0.0")
(defn- to-dep
- [[lib {:keys [mvn/version classifier exclusions] :as coord}]]
+ [[lib {:keys [mvn/version classifier exclusions scope] :as coord}]]
(if version
(cond->
[::pom/dependency
@@ -38,7 +38,10 @@
[::pom/exclusion
[::pom/groupId (namespace excl)]
[::pom/artifactId (name excl)]])
- exclusions)]))
+ exclusions)])
+
+ scope
+ (conj [::pom/scope scope]))
(printerrln "跳过坐标:" coord)))
(defn- gen-deps
--
2.21.0 (Apple Git-122.2)