From ce12916a548870281aab960bea23852c6a2d39d9 Mon Sep 17 00:00:00 2001 From: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com> Date: Fri, 24 Feb 2023 14:42:54 -0800 Subject: [PATCH] chore: Update readme with prerequisites and additional import. --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a39f6e..a816c0b 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,16 @@ This version of the LaunchDarkly provider works with Java 8 and above. ## Getting started +### Requisites + +Your project will need compatible versions of the LaunchDarkly Server-Side SDK for Java as well as the OpenFeature java-sdk. + +Example gradle dependencies: +```groovy +implementation group: 'com.launchdarkly', name: 'launchdarkly-java-server-sdk', version: '[6.0.0, 7.0.0)' +implementation 'dev.openfeature:sdk:[1.2.0,2.0.0)' +``` + ### Installation First, install the LaunchDarkly OpenFeature provider for the Server-Side SDK for Java as a dependency in your application using your application's dependency manager. @@ -38,10 +48,9 @@ implementation group: 'com.launchdarkly', name: 'launchdarkly-openfeature-server ### Usage ```java -package org.example; - import dev.openfeature.sdk.OpenFeatureAPI; import com.launchdarkly.sdk.server.LDClient; +import com.launchdarkly.openfeature.serverprovider.Provider; public class Main { public static void main(String[] args) {