Skip to content

Commit feb5d04

Browse files
committed
add to readme
1 parent 03386c7 commit feb5d04

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,45 @@ You can also go to this [Demo Page](http://opensensorhub.github.io/osh-js/latest
2727

2828
This other [Technical Page](http://sensiasoft.net:8181/demo.html) contains example SWE service calls for you to see the standard compliant XML and data that OSH generates.
2929

30+
If using a build system, binaries for osh-core are stored in GitHub Packages. Use the following repository setup to resolve dependencies:
31+
32+
### Gradle
33+
34+
```groovy
35+
//build.gradle
36+
repositories {
37+
maven {
38+
url = uri("https://maven.pkg.github.com/opensensorhub/osh-core")
39+
credentials {
40+
username = System.getenv("GITHUB_ACTOR")
41+
password = System.getenv("GITHUB_TOKEN")
42+
}
43+
}
44+
}
45+
```
46+
### Maven
47+
```xml
48+
<!--pom.xml-->
49+
<repositories>
50+
<repository>
51+
<id>osh-core</id>
52+
<name>osh-core</name>
53+
<url>https://maven.pkg.github.com/opensensorhub/osh-core</url>
54+
</repository>
55+
</repositories>
56+
```
57+
```xml
58+
<!--~/.m2/settings.xml-->
59+
<servers>
60+
<server>
61+
<id>osh-core</id>
62+
<username>${env.GITHUB_ACTOR}</username>
63+
<password>${env.GITHUB_TOKEN}</password>
64+
</server>
65+
</servers>
66+
```
67+
Where environment variables `GITHUB_ACTOR` and `GITHUB_TOKEN` are your GitHub username and PAT respectively.<br>
68+
For instructions on how to generate PAT's: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
3069

3170
## Building
3271

0 commit comments

Comments
 (0)