File tree Expand file tree Collapse file tree 2 files changed +44
-1
lines changed
Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 1515 java-version : ' 11'
1616 distribution : ' adopt'
1717 - name : Publish package
18- run : mvn --batch-mode deploy --projects rai-sdk - DskipTests
18+ run : mvn --batch-mode deploy -DskipTests
1919 env :
2020 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -79,6 +79,49 @@ https://console.relationalai.com/login
7979
8080You can copy ` config.spec ` from the root of this repo and modify as needed.
8181
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+ ...
115+ </settings>
116+
117+ ` GITHUB_USERNAME ` is your GitHub login name.
118+
119+ ` GITHUB_ACCESS_TOKEN ` is a generated GitHub personal access token:
120+
121+ * GitHub > Settings > Developer Settings > Personal access tokens > Generate new token.*
122+
123+ The token needs at least the read: packages scope.
124+
82125## Examples
83126
84127The SDK contain examples for every API, and various other SDK features. These
You can’t perform that action at this time.
0 commit comments