This document describes how a developer's workstation can be setup.
- Linux / Windows / MacOS
- Java 17 or later
- Gradle
- Docker (optional)
The Example Adapter project is a part of the XRd4J git repository. You can access the source code by cloning it:
git clone https://github.com/nordic-institute/xrd4j.git
The Example Adapter is a separate Gradle project and can be found under the example-adapter
directory.
Example Adapter uses Gradle as the build management tool. Gradle Wrapper is the recommended way of using Gradle to ensure the correct version.
In order to build the whole project, you must run the command below from the example-adapter
directory.
./gradlew build
Running the above command generates the following WAR-files under the build/libs
directory (x.x.x
being replaced by
the version):
build/libs/example-adapter-x.x.x-SNAPSHOT.war
- a deployable WAR filebuild/libs/example-adapter-x.x.x-SNAPSHOT-boot.war
- a Spring Boot executable WAR file