Utilities used to generate deps coordintes for the project.
Utilities used to generate deps coordintes for the project.
(make-git-deps-coords {u :fr.jeremyschoffen.mbt.alpha.project/git-url
:as param})
Make the map representation of a git dependency in a deps.edn
file. Here the git tag
corresponding to the version is used to recover the commit's sha associated with it.
For instance:
(make-deps-coord
{:...mbt.alpha.maven/group-id 'org.something
:...mbt.alpha.maven/artefact-name 'my-lib
:...mbt.alpha.project/git-url "https://github.com/yourname/my-lib"
:...mbt.alpha.versioning/tag-base-name "my-lib"
:...mbt.alpha.versioning/version a-version})
;=> {:org.something/mylib {:git/url "https://github.com/yourname/my-lib\"
:sha "sha of the tag at my-lib-va-version"}}
Make the map representation of a git dependency in a `deps.edn` file. Here the git tag corresponding to the version is used to recover the commit's sha associated with it. For instance: ```clojure (make-deps-coord {:...mbt.alpha.maven/group-id 'org.something :...mbt.alpha.maven/artefact-name 'my-lib :...mbt.alpha.project/git-url "https://github.com/yourname/my-lib" :...mbt.alpha.versioning/tag-base-name "my-lib" :...mbt.alpha.versioning/version a-version}) ;=> {:org.something/mylib {:git/url "https://github.com/yourname/my-lib\" :sha "sha of the tag at my-lib-va-version"}} ```
(make-maven-deps-coords {v :fr.jeremyschoffen.mbt.alpha.project/version
:as param})
Make the map representation of a maven dependency in a deps.edn
file.
For instance:
(make-deps-coord
{:...mbt.alpha.maven/group-id 'org.clojure
:...mbt.alpha.maven/artefact-name 'clojure
:...mbt.alpha.project/version "10.0.1"})
;=> {:org.clojure/clojure {:mvn/version "10.0.1"}}
Make the map representation of a maven dependency in a `deps.edn` file. For instance: ```clojure (make-deps-coord {:...mbt.alpha.maven/group-id 'org.clojure :...mbt.alpha.maven/artefact-name 'clojure :...mbt.alpha.project/version "10.0.1"}) ;=> {:org.clojure/clojure {:mvn/version "10.0.1"}} ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close