-
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_HOMEto the folder where you downloaded the source code. This should contain thebuildfolder. -
Set the environment variable
ADR_EDITORorADR_VISUALto the location of the editor you what to use for editing the ADRs (e.g. Atom). If none of those variables set, ADR will useEDITORandVISUALvariables. 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.cmduse instead...\Programs\Microsoft VS Code\bin\code.cmd. -
Add
%ADR_HOME%\launch-scriptsto thePATHenvironment 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_HOMEto the folder where you downloaded the source code. This should contain thebuildfolder. For instance this could be done by using the adding the following to the~/.bashrcfile:
# For example
export ADR_HOME=~/adr-j
- Set the environment variable
EDITORorVISUALto the location of the editor you what to use for editing the ADRs (e.g. Atom), e.g. in the~/.bashrcfile:
# For example
export EDITOR=/usr/bin/vi
- Move
%ADR_HOME%\launch-scripts\adrto the~/bindirectory.
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.