- Download the source code.
- Make sure you have gradle installed (https://gradle.org/).
- Run
gradlew releaseJar
. This should create a filebuild/releases/adr-j.jar
. - Set the environment variable
ADR_HOME
to the folder where you downloaded the source code. This should contain thebuild
folder. - Set the environment variable
EDITOR
orVISUAL
to the location of the editor you what to use for editing the ADRs (e.g. Atom) - Add
%ADR_HOME%\launch-scripts
to thePATH
environment variable
You should now be able to type adr
from the command line and see a response.
- Download the source code.
- Make sure you have gradle installed (https://gradle.org/).
- Run
.\gradlew releaseJar
. This should create a filebuild/releases/adr-j.jar
. - Set the environment variable
ADR_HOME
to the folder where you downloaded the source code. This should contain thebuild
folder. For instance this could be done by using the adding the following to the~/.bashrc
file:
# For example
export ADR_HOME=~/adr-j
- Set the environment variable
EDITOR
orVISUAL
to the location of the editor you what to use for editing the ADRs (e.g. Atom), e.g. in the~/.bashrc
file:
# For example
export EDITOR=/usr/bin/vi
- Move
%ADR_HOME%\launch-scripts\adr
to the~/bin
directory.
Of course, there are many other ways to install adr-j on unix depending on your personal preferences; important is that the environment variables are set.