Skip to content

Commit e78d4aa

Browse files
committed
📚 Expand docstring for namespace
1 parent 98ce69a commit e78d4aa

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

src/lice_comb/maven.clj

+16-14
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
(ns lice-comb.maven
2020
"Functionality related to combing Maven POMs for license information.
2121
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."
3434
(:require [clojure.string :as s]
3535
[clojure.java.io :as io]
3636
[clojure.java.shell :as sh]
@@ -138,7 +138,9 @@ Other/custom Maven artifact repositories are not currently supported."
138138

139139
(defn ga-latest-version
140140
"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."
142144
[group-id artifact-id]
143145
(when-let [metadata-uri (ga->metadata-uri group-id artifact-id)]
144146
(with-open [metadata-is (io/input-stream metadata-uri)]
@@ -149,7 +151,7 @@ Other/custom Maven artifact repositories are not currently supported."
149151

150152
(defn ga-release-version
151153
"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."
153155
[group-id artifact-id]
154156
(when-let [metadata-uri (ga->metadata-uri group-id artifact-id)]
155157
(with-open [metadata-is (io/input-stream metadata-uri)]

0 commit comments

Comments
 (0)