Verified Commit 96949ec0 authored by Snorre Magnus Davøen's avatar Snorre Magnus Davøen 💬
Browse files

Add documentation about development and release process.

Signed-off-by: Snorre Magnus Davøen's avatarSnorre Magnus Davøen <>
parent be6588e4
Pipeline #13807 passed with stage
in 47 seconds
......@@ -38,6 +38,116 @@ buddy-auth:
:options {:alg :rs256}}))
## Development
Ensure you have [Clojure installed](
Then clone project and run Clojure Tools Deps targets. If you have rlwrap
installed you can use the `clj` command in place of `clojure`.
# Run regular old Clojure tests
clojure -Atest
# Exercise clojure specs
clojure -Apropertytest
You can start a REPL in the project to evaluate code. If you need an nREPL configure
a global tools deps alias in `~/.clojure/deps.edn`:
{:aliases {:nREPL {:extra-deps {nrepl/nrepl {:mvn/version "0.4.5"}}
:main-opts ["-m" "nrepl.cmdline"]}}}
Then run:
clojure -AnREPL
### Installing 'work in progress' locally
If you are contributing code to the library you may wish to test it against a
clojure project locally to ensure everything works.
You may install your version of clj-jwt into your local m2 repository:
lein install
If you use clojure tools deps you can simply refer to your clj-jwt project in
the other clojure project's `deps.edn` file:
{clj-jwt {:local/root "/path/to/clj-jwt"}}}
## Making new release
You need [Leiningen installed]( The
`project.clj` file specifies a `snapshot` and `release` repository. You need to
configure credentials for each of the repositories in your
`~/.lein/credentials.clj` file. Example:
{"" {:username "your-nexus-user"
:password "super secret password"}
"" {:username "your-nexus-user"
:password "super secret password"}}
To make a release follow these points:
### Run tests and property tests (specs)
# Run regular old Clojure tests
clojure -Atest
# Exercise clojure specs
clojure -Apropertytest
### Bump version number in project.clj
There are different scenarios where you need to increment the version number
differently. The gist of it is that this library follows
[semver]( with SNAPSHOT releases for test releases.
Making final release from snapshot builds:
0.2.0-SNAPSHOT -> 0.2.0
Making snapshot release from release build:
0.2.0 -> 0.3.0-SNAPSHOT
Making patch release from release build:
0.2.0 -> 0.2.1
Then run the lein deploy command:
### Run leiningen deploy
To build jar and upload to [NSD's Nexus](
lein deploy
### Finally commit, push and tag release
Commit the project.clj version bump, push it to the Gitlab repository, and tag
it. The tag message should describe the changes made, and the release notes can
link to the release in Nexus.
PS! It is not necessary to commit and push SNAPSHOT releases. SNAPSHOT releases
are mutable and should not be tagged in git.
## License
(defproject no.nsd/clj-jwt "0.1.0"
(defproject no.nsd/clj-jwt "0.2.0-SNAPSHOT"
:description "A Clojure library to fetch json web keys and validate json web tokens. Wraps Buddy."
:url ""
:license {:name "Eclipse Public License"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment