-
Download the source code.
-
Make sure you have Java version 17 or higher installed.
-
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
ADR_EDITOR
orADR_VISUAL
to the location of the editor you what to use for editing the ADRs (e.g. Atom). If none of those variables set, ADR will useEDITOR
andVISUAL
variables. If the path to the editor has spaces in it, do not use quotes in the enviroment variable, e.g. instead of...\Programs\"Microsoft VS Code"\bin\code.cmd
use instead...\Programs\Microsoft VS Code\bin\code.cmd
. -
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.
You should now be able to type adr
from the command line and see a response.
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.