Java
We use <AIDDL> as the root of the aiddl.org git repository. To install the AIDDL libraries, open a console in the root of the library you would like to install:
Core library:
<AIDDL>/core/java/Common library:
<AIDDL>/common/java/Util library:
<AIDDL>/util/java/
For each of these (in the listed order) run the following on the command line:
Project Setup with Gradle
If you followed the installation instructions on the previous page, AIDDL libraries have been installed in a local maven repository (i.e. a folder on your computer). To make sure Gradle finds the library, add the following under repositories {...} in your build.gradle file:
To use AIDDL libraries, add the following under dependencies {...}.
Application Gradle File Example
The following is the build.gradle file of one of the runnable AIDDL example applications. It also includes a run task to execute your application.
Library Gradle File Example
Finally, here is a full example for the build.gradle file of the AIDDL common Java library. It has no run task, but includes everything required to create a library that can be installed in the same way as AIDDL common.
Troubleshooting
Gradle error: Class file compiled with a different version
Cause: Your Java version is probably too new for the Gradle version used by the wrapper.
Solution: Update the Gradle wrapper to the most recent version
<VER>of gradle, or use an older version of Java (in case gradle does not support your java version yet). Please contact us, so we can update the wrapper in the repository as well. Meanwhile the following command should do the trick:./gradlew wrapper --gradle-version=<VER>