Tip
Install all external tools automatically with asdf
or mise
. All tool versions are listed in the .tool-versions
file.
bb lint # Lint
bb fmt # Fix formatting
bb outdated # List outdated deps
Run tests by executing the following commands.
bb build compile
bb test
Warning
If you have any local changes that haven't been committed, they will be included in the built jar file.
Build and install the jar with these commands.
bb build jar
bb build install
If there was no Git tag pointing to the commit, the jar will have the version: local
.
Create a Git tag for the version to build (preferrably prefixed with v
) pointing at the relevant commit.
Run this command (replacing the username and password with your own and the version with the Git tag), which will test, build and deploy the jar to Clojars.
CLOJARS_USERNAME=username CLOJARS_PASSWORD=CLOJARS_pat ./build/deploy.sh vX.X