Add as a Gradle dependency
In order to use JDeli in a Gradle project, you will need to add the jar to the project as a dependency.
To do this you have two options:
Manually
This section assumes that the JDeli jar file is named “jdeli.jar”, if you’re using the trial jar, make sure to rename the file to “jdeli.jar” before following this step.
You will need to first download the JDeli jar:
First add JDeli jar into your project lib folder, and then either:
Option 1
Add a flatDir repository and a dependency to the build.gradle file.
repositories {
flatDir {
dirs "lib"
}
}
dependencies {
implementation "idrsolutions:jdeli"
}
Option 2
Add a file dependency to the build.gradle file.
dependencies {
implementation files("lib/jdeli.jar")
}
(Version tested: Gradle 8.11)
Using Our Remote Maven Repository
- Add our repository to repositories with your login information in your build.gradle:
repositories { maven { url = "https://files.idrsolutions.com/dl/maven/" credentials { username "{Your username}" password "{Your password}" } } }
Trial
If you want to get the trial through the maven repository, you will instead need to setup your repositories as so:
repositories { maven { url = "https://files.idrsolutions.com/dl/maven/" credentials { username "{Your Token}" password "{Your Token}" } } }
Alternative Credentials
Alternatively, as it is very insecure to add your login details to your main gradle file, you can instead add the repository with:
repositories { maven { url = "https://maven.idrsolutions.com" name = "IDRsolutions" credentials(PasswordCredentials) } }
Then, in a gradle.properties file (you can either use one in your project root directory, or in your GRADLE_USER_HOME directory), add the following:
IDRsolutionsUsername={Your Username} IDRSolutionsPassword={Your Password}
Trial
Like the credentials in the repository, you need to supply your token instead of your username and password.
IDRsolutionsUsername={Your Token} IDRSolutionsPassword={Your Token}
More about gradle.properties files can be found here.
-
Next, add JDeli as a dependency:
For Full Releases:
dependencies { implementation "com.idrsolutions:jdeli:{version}" }
Where version is one of the releases in the format
YYYY.MM
(please note that only versions after 2021.11 are available, and we will only provide support for the most recent version of JDeli)For Daily Builds:
dependencies { implementation "com.idrsolutions:jdeli-daily:{version}" }
Where version is one of the releases in the format
YYYY.MM.DD
(please note that we only store the most recent daily build)For Trial Builds:
dependencies { implementation "com.idrsolutions:jdeli-trial:{version}" }
Where version is the latest release in the format
YYYY.MM
.