1+ # General
2+
3+ | Workflow | Status |
4+ | --------------------------- | ---------------------------------------------------------------------- |
5+ | Continuous Integration (CI) | ![ build] ( https://github.com/RelationalAI/rai-sdk-java/actions/workflows/maven-build.yaml/badge.svg ) |
6+ | Publish to GitHub packages | ![ publish] ( https://github.com/RelationalAI/rai-sdk-java/actions/workflows/maven-publish.yaml/badge.svg ) |
7+ | Generate java documentation | ![ javadoc] ( https://github.com/RelationalAI/rai-sdk-java/actions/workflows/maven-javadoc.yaml/badge.svg ) |
8+
9+
110# The RelationalAI Software Development Kit for Java
211
312The RelationalAI (RAI) SDK for Java enables developers to access the RAI REST
@@ -70,6 +79,50 @@ https://console.relationalai.com/login
7079
7180You can copy ` config.spec ` from the root of this repo and modify as needed.
7281
82+ ### Using the SDK as a maven dependency
83+
84+ In order to use the ` rai-sdk-java ` , you need add this dependency to your project's POM:
85+
86+ <dependency>
87+ <groupId>com.relationalai</groupId>
88+ <artifactId>rai-sdk</artifactId>
89+ <version>0.0.1</version>
90+ </dependency>
91+
92+ You need also to point maven to the SDK GitHub packages repository in the project's POM:
93+
94+ <repositories>
95+ <repository>
96+ <id>github</id>
97+ <name>The RelationalAI SDK for Apache Maven</name>
98+ <url>https://maven.pkg.github.com/RelationalAI/rai-sdk-java</url>
99+ </repository>
100+ </repositories>
101+
102+ The registry access is available through GiHub api which is protected. You have to add GitHub credentials to ` $HOME/.m2/settings.xml ` :
103+
104+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
105+ xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
106+ <localRepository/>
107+ ...
108+ <servers>
109+ <server>
110+ <id>github</id>
111+ <username>GITHUB_USERNAME</username>
112+ <password>GITHUB_ACCESS_TOKEN</password>
113+ </server>
114+ </servers>
115+ ...
116+ </settings>
117+
118+ ` GITHUB_USERNAME ` is your GitHub login name.
119+
120+ ` GITHUB_ACCESS_TOKEN ` is a generated GitHub personal access token:
121+
122+ * GitHub > Settings > Developer Settings > Personal access tokens > Generate new token.*
123+
124+ The token needs at least the read: packages scope.
125+
73126## Examples
74127
75128The SDK contain examples for every API, and various other SDK features. These
@@ -90,6 +143,10 @@ individual examples, eg:
90143 cd ./rai-sdk/examples
91144 ./run GetDatabase sdk-test
92145
146+ ## Javadocs
147+
148+ Javadocs for ` rai-sdk ` are available [ here] ( https://musical-winner-94955c55.pages.github.io/com/relationalai/package-summary.html ) .
149+
93150## Support
94151
95152You can reach the RAI developer support team at
` [email protected] `
0 commit comments