Link
Skip to main content

Add FormVu as a Gradle dependency

Table of contents

  1. Adding the jar manually
  2. Using our remote Maven repository
    1. 1. Add the repository
    2. 2. Add the dependency
      1. Customer artifact IDs
      2. Trial artifact IDs
      3. Daily builds

In order to use FormVu in a Gradle project, you will need to add the jar to the project as a dependency. You can either add the jar manually or use our remote Maven repository.

The snippets below are shown for both the Groovy (build.gradle) and Kotlin (build.gradle.kts) DSLs — use whichever matches your project.

Adding the jar manually

You will need to first download the FormVu jar:

Download FormVu

Add the jar into your project’s lib folder, then add a file dependency that points at it:

Groovy

dependencies {
    implementation files("lib/formvu.jar")
}

Kotlin

dependencies {
    implementation(files("lib/formvu.jar"))
}

The example above uses the filename formvu.jar. Update the path to match the name of the jar you downloaded — the trial jar, for example, has a different filename.

Using our remote Maven repository

1. Add the repository

Add our repository to your build file, with your login information. There are two ways to provide credentials:

Option 1 — Using gradle.properties (recommended)

This keeps your credentials out of your build file, and therefore out of version control. Add the repository:

Groovy

repositories {
    maven {
        url = "https://maven.idrsolutions.com"
        name = "IDRsolutions"
        credentials(PasswordCredentials)
    }
}

Kotlin

repositories {
    maven {
        url = uri("https://maven.idrsolutions.com")
        name = "IDRsolutions"
        credentials(PasswordCredentials::class)
    }
}

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={Customer Username or Trial Token}
IDRsolutionsPassword={Customer Password or Trial Token}

More about gradle.properties files can be found here.

For the trial, set both the username and password to your trial token.

Option 2 — Inline credentials

Simpler, but your credentials end up in your build file (and likely in version control), so prefer Option 1 where possible.

Groovy

repositories {
    maven {
       url = "https://maven.idrsolutions.com"
       credentials {
         username "{Customer Username or Trial Token}"
         password "{Customer Password or Trial Token}"
       }
    }
}

Kotlin

repositories {
    maven {
       url = uri("https://maven.idrsolutions.com")
       credentials {
         username = "{Customer Username or Trial Token}"
         password = "{Customer Password or Trial Token}"
       }
    }
}

For the trial, set both the username and password to your trial token.

2. Add the dependency

Next, add FormVu as a dependency:

Groovy

dependencies {
    implementation "com.idrsolutions:{artifactId}:{version}"
}

Kotlin

dependencies {
    implementation("com.idrsolutions:{artifactId}:{version}")
}

Customer artifact IDs

  • formvu where version is in the format YYYY.MM

Only versions after 2021.11 are available, and we only support the most recent version of FormVu.

Trial artifact IDs

  • formvu-trial where version is in the format YYYY.MM

Daily builds

Customers may access daily builds with the following artifact IDs.

The Maven repository only stores the most recent daily build.

  • formvu-daily where version is in the format YYYY.MM.DD

What's included in your FormVu trial?

  • Access to download the SDK and run it locally.
  • Access to the cloud trial to convert documents in the IDR cloud.
  • Access to the Docker image to set up your own trial server in the cloud.
  • Communicate with IDR developers to ask questions & get expert advice.
  • Plenty of time to experiment and build a proof of concept.
  • Over 100 articles to help you get started and learn about FormVu.
  • An exceptional PDF Form to HTML converter that took over 20 years to build!

Learn more about FormVu

Start Your Free Trial