Link

Add as a Gradle dependency

This tutorial 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.

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

You will need to first download the JDeli jar by signing up for a JDeli trial or by visiting the customer download page.

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 6.6.1)

Using Our Remote Maven Repository

  1. 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}"
         }
    }
    

    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}
    

    More about gradle.properties files can be found here.

  2. 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)

Still need help? Send us your questions.