- gradle is the primary build tool for the main Java project (runs on Java)
The steps below describe usage on both Windows and Linux
- The example refers to Windows
- The section further below shows complete example for Linux
- Java JDK 8, see latest versions
- latest Windows OpenJDK8U-jdk_x64_windows_hotspot_8u242b08.zip
- latest Linux OpenJDK8U-jdk_x64_linux_hotspot_8u242b08.tar.gz
- Git, see latest versions
- latest Windows PortableGit-2.26.0-64-bit.7z.exe
- Linux install
apt-get install git
- all support "portable" installation, examples here are extracted to
C:\Apps
- ensure dependencies, above, are on path, e.g. on Windows:
set PATH=%PATH%;C:\Apps\git\bin;C:\Apps\jdk8u242-b08\bin
- ensure primary dependencies, above, are on path (see example in STEP 2, above)
- then Clone! e.g. cloning into
c:\temp\nodel-build
directory:
git clone https://github.com/museumsvictoria/nodel c:\temp\nodel-build
- Build! Example, from the
c:\temp\nodel-build
directory:
cd c:\Temp\nodel-build
gradlew build
- check
nodel-jyhost/build/distributions/standalone
directory for binary release e.g.nodelhost-dev-2.2.1-rev407.jar
Full example using clean Linux environment¹
# download and extract Java
wget https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u242b08.tar.gz
tar xf OpenJDK8U-jdk_x64_linux_hotspot_8u242b08.tar.gz
# ends up in ./jdk8u242-b08
# (git is normally already available)
# adjust PATH
export PATH=$PATH:~/jdk8u242-b08/bin/
# quickly verify versions of all dependencies
java -version
# e.g. >> openjdk version "1.8.0_242"
git version
# e.g. >> git version 2.25.1
# clone repo
git clone https://github.com/museumsvictoria/nodel nodel-build
# execute full build
cd ~/nodel-build
./gradlew build
# check output (standalone JAR file)
ls ~/nodel-build/nodel-jyhost/build/distributions/standalone/
# run Nodel (optional)
java -jar ~/nodel-build/nodel-jyhost/build/distributions/standalone/nodelhost-dev-2.2.1-rev407.jar -p 0
Source update, clean and build re-run
cd ~/nodel-build
git pull
./gradlew clean
# or
git clean -fxd
./gradlew build
Full cleanup
rm -fr ~/jdk8u242-b08
rm -fr ~/nodel-build
¹ For macOS, adjust to suit.