Functionality related to combing Maven POMs for license information.
Functionality related to combing Maven POMs for license information.
(ga->metadata-uri {:keys [group-id artifact-id]})
(ga->metadata-uri group-id artifact-id)
Returns a java.net.URI pointing to the maven-metadata.xml for the given GA, or nil if one cannot be found. The returned URI is guaranteed to be resolvable - either to a file that exists in the local Maven cache, or to an HTTP-accessible resource on a remote Maven repository (i.e. Maven Central or Clojars) that resolves.
Returns a java.net.URI pointing to the maven-metadata.xml for the given GA, or nil if one cannot be found. The returned URI is guaranteed to be resolvable - either to a file that exists in the local Maven cache, or to an HTTP-accessible resource on a remote Maven repository (i.e. Maven Central or Clojars) that resolves.
(ga-latest-version group-id artifact-id)
Determines the latest version of the given GA as a String, or nil if it cannot be determined.
Determines the latest version of the given GA as a String, or nil if it cannot be determined.
(ga-release-version group-id artifact-id)
Determines the release version (if any) of the given GA as a String, or nil if it cannot be determined.
Determines the release version (if any) of the given GA as a String, or nil if it cannot be determined.
(gav->expressions group-id artifact-id)
(gav->expressions group-id artifact-id version)
Returns a set of SPDX expressions (Strings) for the given Maven GA (group-id, artifact-id) and optionally V (version).
If version is not provided, the latest version is looked up (which involves file and potentially also network I/O).
Returns a set of SPDX expressions (Strings) for the given Maven GA (group-id, artifact-id) and optionally V (version). If version is not provided, the latest version is looked up (which involves file and potentially also network I/O).
(gav->expressions-info group-id artifact-id)
(gav->expressions-info group-id artifact-id version)
Returns an expressions-info map for the given Maven GA (group-id, artifact-id) and optionally V (version).
If version is not provided, the latest version is looked up (which involves file and potentially also network I/O).
Returns an expressions-info map for the given Maven GA (group-id, artifact-id) and optionally V (version). If version is not provided, the latest version is looked up (which involves file and potentially also network I/O).
(gav->metadata-uri {:keys [group-id artifact-id version]})
(gav->metadata-uri group-id artifact-id version)
Returns a java.net.URI pointing to the maven-metadata.xml for the given GAV, or nil if one cannot be found. The returned URI is guaranteed to be resolvable - either to a file that exists in the local Maven cache, or to an HTTP-accessible resource on a remote Maven repository (i.e. Maven Central or Clojars) that resolves.
Returns a java.net.URI pointing to the maven-metadata.xml for the given GAV, or nil if one cannot be found. The returned URI is guaranteed to be resolvable - either to a file that exists in the local Maven cache, or to an HTTP-accessible resource on a remote Maven repository (i.e. Maven Central or Clojars) that resolves.
(gav->pom-uri {:keys [group-id artifact-id version]})
(gav->pom-uri group-id artifact-id)
(gav->pom-uri group-id artifact-id version)
Returns a java.net.URI pointing to the POM for the given GAV, or nil if one cannot be found. The returned URI is guaranteed to be resolvable - either to a file that exists in the local Maven cache, or to an HTTP-accessible resource on a remote Maven repository (i.e. Maven Central or Clojars) that resolves.
If version is not provided, determines the latest version (which may be a SNAPSHOT) and uses that.
Returns a java.net.URI pointing to the POM for the given GAV, or nil if one cannot be found. The returned URI is guaranteed to be resolvable - either to a file that exists in the local Maven cache, or to an HTTP-accessible resource on a remote Maven repository (i.e. Maven Central or Clojars) that resolves. If version is not provided, determines the latest version (which may be a SNAPSHOT) and uses that.
(init!)
Initialises this namespace upon first call (and does nothing on subsequent calls), returning nil. Consumers of this namespace are not required to call this fn, as initialisation will occur implicitly anyway; it is provided to allow explicit control of the cost of initialisation to callers who need it.
Initialises this namespace upon first call (and does nothing on subsequent calls), returning nil. Consumers of this namespace are not required to call this fn, as initialisation will occur implicitly anyway; it is provided to allow explicit control of the cost of initialisation to callers who need it.
(pom->expressions pom)
(pom->expressions pom filepath)
Returns a set of SPDX expressions (Strings) for the given POM file (an InputStream or something that can have an io/input-stream opened on it), or nil if no expressions were found.
If an InputStream is provided, it is the caller's responsibility to open and close it, and a filepath associated with the InputStream must be provided as the second parameter (it is optional for other types of input).
Returns a set of SPDX expressions (Strings) for the given POM file (an InputStream or something that can have an io/input-stream opened on it), or nil if no expressions were found. If an InputStream is provided, it is the caller's responsibility to open and close it, and a filepath associated with the InputStream *must* be provided as the second parameter (it is optional for other types of input).
(pom->expressions-info pom)
(pom->expressions-info pom filepath)
Returns an expressions-info map for the given POM file (an InputStream or something that can have an io/input-stream opened on it), or nil if no expressions were found.
If an InputStream is provided, it is the caller's responsibility to open and close it, and a filepath associated with the InputStream must be provided as the second parameter (it is optional for other types of input).
Note: throws on XML parsing error
Returns an expressions-info map for the given POM file (an InputStream or something that can have an io/input-stream opened on it), or nil if no expressions were found. If an InputStream is provided, it is the caller's responsibility to open and close it, and a filepath associated with the InputStream *must* be provided as the second parameter (it is optional for other types of input). Note: throws on XML parsing error
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |