Skip to main content

Java Server SDK Installation

Maven GitHub

Requirements

This version of the DevCycle SDK works with Java 11 and above.

Using the Java SDK library requires Maven or Gradle >= 7.6+ to be installed.

info

An x86_64 or aarch64 JDK is required for Local Bucketing with the DevCycle Java SDK.

Currently Supported Platforms are:

OSArch
Linux (ELF)x86_64
Linux (ELF)aarch64
Mac OSx86_64
Mac OSaarch64
Windowsx86_64

In addition, the environment must support GLIBC v2.16 or higher. You can use the following command to check your GLIBC version:

ldd --version

Maven

You can use the SDK in your Maven project by adding the following to your pom.xml:

<dependency>
<groupId>com.devcycle</groupId>
<artifactId>java-server-sdk</artifactId>
<version>LATEST</version>
<scope>compile</scope>
</dependency>
info

Refer to the latest version of the SDK on maven central if you would not prefer Maven or Gradle to pull the latest version automatically by using +

Gradle

Alternatively you can use the SDK in your Gradle project by adding the following to build.gradle:

implementation("com.devcycle:java-server-sdk:+")

DNS Caching

The JVM, by default, caches DNS for infinity. DevCycle servers are load balanced and dynamic. To address this concern, setting the DNS cache TTL to a short duration is recommended. The TTL is controlled by this security setting networkaddress.cache.ttl. Recommended settings and how to configure them can be found here.