Skip to content

Commit 1335575

Browse files
authored
chore: Update readme with prerequisites and additional import. (#11)
1 parent f4a778a commit 1335575

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ This version of the LaunchDarkly provider works with Java 8 and above.
1818

1919
## Getting started
2020

21+
### Requisites
22+
23+
Your project will need compatible versions of the LaunchDarkly Server-Side SDK for Java as well as the OpenFeature java-sdk.
24+
25+
Example gradle dependencies:
26+
```groovy
27+
implementation group: 'com.launchdarkly', name: 'launchdarkly-java-server-sdk', version: '[6.0.0, 7.0.0)'
28+
implementation 'dev.openfeature:sdk:[1.2.0,2.0.0)'
29+
```
30+
2131
### Installation
2232

2333
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
3848
### Usage
3949

4050
```java
41-
package org.example;
42-
4351
import dev.openfeature.sdk.OpenFeatureAPI;
4452
import com.launchdarkly.sdk.server.LDClient;
53+
import com.launchdarkly.openfeature.serverprovider.Provider;
4554

4655
public class Main {
4756
public static void main(String[] args) {

0 commit comments

Comments
 (0)