Installation

This article explains how to set up Lingo3G Java API with common Java build workflows.

Apache Maven

The distribution package comes with Lingo3G JAR and an associated POM file which lists all open source dependencies required by the project.

For development, the POM file has to be installed in the local Maven repository or on your company's shared-artifact servers (such as Sonatype Nexus).

The installation into a local Maven repository can be done with the following command (assuming Apache Maven installed):

mvn install:install-file -Dfile=lib/lingo3g-*.jar -DpomFile=lib/lingo3g-*.pom

Once completed, Lingo3G will be available from the local repository using the following coordinates:

<dependency>
  <groupid>com.carrotsearch.lingo3g</groupid>
  <artifactid>lingo3g</artifactid>
  <version>2.0.0-beta2</version>
</dependency>

Gradle

The easiest way to set up a Gradle build is to can consume artifacts from a local Maven repository (installed as explained above). Once installed, gradle coordinates of lingo3g are (we use implementation as a particular configuration to attach the dependency to here):

dependencies {
  implementation("com.carrotsearch.lingo3g:lingo3g:2.0.0-beta2")
}

Alternatively, a gradle dependency can just include the set of JAR files from under the distribution's lib/ folder:

dependencies {
  implementation fileTree("lingo3g-distribution/lib").include("**/*.jar")
}