After Creating Your Application, it is time to install the SDK.
There are three steps in the SDK install:
- Add the Rollout SDK to your project.
- Set up your Rollout environment key.
- Initialize the Rollout SDK when the service starts.
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
<dependency> <groupId>io.rollout.rox</groupId> <artifactId>rox-java-server</artifactId> <version>2.0.0</version> </dependency>
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.
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.