You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,45 @@ You can also go to this [Demo Page](http://opensensorhub.github.io/osh-js/latest
27
27
28
28
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.
29
29
30
+
If using a build system, binaries for osh-core are stored in GitHub Packages. Use the following repository setup to resolve dependencies:
Where environment variables `GITHUB_ACTOR` and `GITHUB_TOKEN` are your GitHub username and PAT respectively.<br>
68
+
[Instructions on how to generate PATs](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
'The default package \'.\' is not permitted by the Import-Package syntax; is:=ignore,'+
183
+
'Unused Export-Package instructions; is:=ignore,'
184
+
183
185
// disable DS annotation processing
184
186
if (!attributes['-dsannotations'])
185
187
attributes '-dsannotations': '!*'
@@ -292,9 +294,23 @@ subprojects {
292
294
293
295
assemble.dependsOn osgi
294
296
297
+
tasks.register('prePublish') {
298
+
if (System.getenv("GITHUB_ACTOR") ==null) {
299
+
thrownewException("Environment variable GITHUB_ACTOR not set. Please set to your github username.")
300
+
}
301
+
302
+
if (System.getenv("GITHUB_TOKEN") ==null) {
303
+
thrownewException("Environment variable GITHUB_TOKEN not set. Please generate and set to your personal access token: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens")
304
+
}
305
+
}
306
+
307
+
tasks.named('publish') { // This is a lifecycle task that runs all publish tasks
308
+
dependsOn 'prePublish'
309
+
}
310
+
295
311
// do stuff at the end in case subprojects add extra info
0 commit comments