Grouping of the different versioning utilities.
Grouping of the different versioning utilities.
(check-repo-in-order ctxt)
Concentrate several checks in one function. Namely:
Concentrate several checks in one function. Namely: - [[fr.jeremyschoffen.mbt.alpha.default.versioning.git-state/check-some-commit]] - [[fr.jeremyschoffen.mbt.alpha.default.versioning.git-state/check-not-dirty]]
(current-version param)
Get the current version using the provided version scheme.
Get the current version using the provided version scheme.
(get-tag param)
Recover a git tag based on a version and a tag base name.
Recover a git tag based on a version and a tag base name.
A simple version scheme based on git-distance. There is only one version number starting at 0 on a specific commit. It then becomes the number of commits from the initial version bumps after bumps.
This system allows for the use of alpha and beta qualifiers. A version without a qualifier can't go back to alpha nor
beta. To use them they need to be specified when the initial version is made conforming to the
:git-distance/qualifier
spec.
To specify a qualifier:
level
parameter is
usedfr.jeremyschoffen.mbt.alpha.default.versioning.schemes/initial-version
the qualifier is passed using
the key :versioning/bump-level
of the config map.
``A simple version scheme based on git-distance. There is only one version number starting at 0 on a specific commit. It then becomes the number of commits from the initial version bumps after bumps. This system allows for the use of alpha and beta qualifiers. A version without a qualifier can't go back to alpha nor beta. To use them they need to be specified when the initial version is made conforming to the `:git-distance/qualifier` spec. To specify a qualifier: - using [[fr.jeremyschoffen.mbt.alpha.default.versioning.schemes.protocols/initial-version]] the `level` parameter is used - using [[fr.jeremyschoffen.mbt.alpha.default.versioning.schemes/initial-version]] the qualifier is passed using the key `:versioning/bump-level` of the config map. ``
(last-version param)
Return the last tagged version.
Return the last tagged version.
A maven version scheme. The versioning starts at the first versioned commit. Supports the following bumps:
:patch
:minor
:major
:alpha
:beta
:rc
:release
A maven version scheme. The versioning starts at the first versioned commit. Supports the following bumps: - `:patch` - `:minor` - `:major` - `:alpha` - `:beta` - `:rc` - `:release`
(next-version param)
Get the next version using the provided version scheme.
Get the next version using the provided version scheme.
(project-version {v :fr.jeremyschoffen.mbt.alpha.versioning/version})
Get a ...mbt.alpha.project/version
from a ...mbt.alpha.versioning/version
.
Get a `...mbt.alpha.project/version` from a `...mbt.alpha.versioning/version`.
(schemes-initial-version {h :fr.jeremyschoffen.mbt.alpha.versioning/scheme
level
:fr.jeremyschoffen.mbt.alpha.versioning/bump-level})
Get the initial version for a version scheme.
Get the initial version for a version scheme.
A semver version scheme. The versioning starts at the first versioned commit. Supports the following bumps:
:patch
:minor
:major
A semver version scheme. The versioning starts at the first versioned commit. Supports the following bumps: - `:patch` - `:minor` - `:major`
(tag-name {base :fr.jeremyschoffen.mbt.alpha.versioning/tag-base-name
v :fr.jeremyschoffen.mbt.alpha.versioning/version})
(tag-new-version! param)
Create a new tag in git marking a new milestone in the project.
Create a new tag in git marking a new milestone in the project.
(update-scm-tag conf)
Update the [:...mbt.alpha.maven/scm :...mbt.alpha.maven.scm/tag]
part of the config
with th name of the commit whose last version tag points to.
Update the `[:...mbt.alpha.maven/scm :...mbt.alpha.maven.scm/tag]` part of the config with th name of the commit whose last version tag points to.
(write-version-file! {dest :fr.jeremyschoffen.mbt.alpha.version-file/path
:as param})
Make the string content of a version file and spit it at the destination specified under the key
:version-file/path
.
Make the string content of a version file and spit it at the destination specified under the key `:version-file/path`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close