Rollout.io - Documentation

Java Server

After Creating Your Application, it is time to install the SDK.
There are three steps in the SDK install:

  1. Add the Rollout SDK to your project.
  2. Set up your Rollout environment key.
  3. Initialize the Rollout SDK when the service starts.

Add the Rollout SDK To Your Project

The first step is to add the ROX Java Server library to the dependencies block in your build.gradle file.

Add these lines to your dependencies file

compile 'io.rollout:rox-java-server:2.0.2'
<dependency>
    <groupId>io.rollout.rox</groupId>
    <artifactId>rox-java-server</artifactId>
    <version>2.0.0</version>
</dependency>

Initialize the Rollout SDK when the service starts

The third step is to initialize the Rollout SDK when the service starts. If your service contains a class that setup initial services, that is the right place to initialize the SDK.

Rox.setup(environmentKey);

Run your service

Now you can build and run your service

If you log in to the Rollout dashboard, the dashboard will recognize that the setup is complete.

That's it! Now your app is ready to use Rollout.

And with that, it's time to create a Rollout feature flag.

Java Server