19
19
(ns lice-comb.maven
20
20
" Functionality related to combing Maven POMs for license information.
21
21
22
- In this namespace abbreviations are used for Maven's groupId, artifactId, and
23
- version concepts. So for example:
24
- * `ga` means groupId & artifactId
25
- * `gav` means groupId, artifactId & version
26
-
27
- In function calls where a version isn't required or provided, the library will
28
- determine and use the latest available version, as determined from (in order):
29
- 1. your local Maven cache (usually ~/.m2/repository)
30
- 2. Maven Central
31
- 3. Clojars
32
-
33
- Other/custom Maven artifact repositories are not currently supported."
22
+ In this namespace abbreviations are used for Maven's groupId, artifactId, and
23
+ version concepts. So for example:
24
+ * `ga` means groupId & artifactId
25
+ * `gav` means groupId, artifactId & version
26
+
27
+ In function calls where a version isn't required or provided, the library will
28
+ determine and use the latest available version, as determined from (in order):
29
+ 1. your local Maven cache (usually ~/.m2/repository)
30
+ 2. Maven Central
31
+ 3. Clojars
32
+
33
+ Other/custom Maven artifact repositories are not currently supported."
34
34
(:require [clojure.string :as s]
35
35
[clojure.java.io :as io]
36
36
[clojure.java.shell :as sh]
@@ -138,7 +138,9 @@ Other/custom Maven artifact repositories are not currently supported."
138
138
139
139
(defn ga-latest-version
140
140
" Determines the latest version of the given GA as a String, or nil if it
141
- cannot be determined."
141
+ cannot be determined.
142
+
143
+ Note that this could be a SNAPSHOT, RC, or other pre-release version."
142
144
[group-id artifact-id]
143
145
(when-let [metadata-uri (ga->metadata-uri group-id artifact-id)]
144
146
(with-open [metadata-is (io/input-stream metadata-uri)]
@@ -149,7 +151,7 @@ Other/custom Maven artifact repositories are not currently supported."
149
151
150
152
(defn ga-release-version
151
153
" Determines the release version (if any) of the given GA as a String, or nil
152
- if it cannot be determined."
154
+ if it cannot be determined or the GA doesn't have a released version yet ."
153
155
[group-id artifact-id]
154
156
(when-let [metadata-uri (ga->metadata-uri group-id artifact-id)]
155
157
(with-open [metadata-is (io/input-stream metadata-uri)]
0 commit comments