Skip to content

Commit

Permalink
docs: add maven install instuctions
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Jan 16, 2024
1 parent 02032de commit ef5e5ab
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/markdown.links.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
},
{
"pattern": "https://github.com/openfga/java-sdk"
},
{
"pattern": "https://maven.apache.org/"
}
],
"httpHeaders": [
Expand Down
34 changes: 21 additions & 13 deletions docs/content/getting-started/install-sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,27 @@ In your code, import the module and use it:
import openfga_sdk
```

</TabItem>
<TabItem value={SupportedLanguage.JAVA_SDK} label={languageLabelMap.get(SupportedLanguage.JAVA_SDK)}>

You can find the Java package on [Maven Central](https://central.sonatype.com/artifact/dev.openfga/openfga-sdk).

Using [Maven](https://maven.apache.org/):

```
<dependency>
<groupId>dev.openfga</groupId>
<artifactId>openfga-sdk</artifactId>
<version>0.3.0</version>
</dependency>
```

Using [Gradle](https://gradle.org/):

```groovy
implementation 'dev.openfga:openfga-sdk:0.3.0'
```

</TabItem>
<TabItem value={SupportedLanguage.CLI} label={languageLabelMap.get(SupportedLanguage.CLI)}>

Expand Down Expand Up @@ -166,19 +187,6 @@ go install github.com/openfga/cli@latest
### Manually
Download the pre-compiled binaries from the [releases page](https://github.com/openfga/cli/releases).

</TabItem>
<TabItem value={SupportedLanguage.JAVA_SDK} label={languageLabelMap.get(SupportedLanguage.JAVA_SDK)}>

You can find the Java package on [Maven Central](https://central.sonatype.com/artifact/dev.openfga/openfga-sdk).

Using [Gradle](https://gradle.org/):

<!-- markdown-link-check-disable -->

```groovy
implementation 'dev.openfga:openfga-sdk:0.3.0'
```

</TabItem>
</Tabs>

Expand Down

0 comments on commit ef5e5ab

Please sign in to comment.