@@ -22,32 +22,34 @@ allprojects {
2222
2323subprojects {
2424
25- // bintray publishing options
26- bintray {
27- user = bintray_user
28- key = bintray_api_key
29-
30- publications = [' mavenJava' ]
31- dryRun = false // whether to run this as dry-run, without deploying
32- publish = true // whether version should be auto published after an upload
33- override = true // whether to override version artifacts already published
34-
35- pkg {
36- repo = ' osh'
37- name = ' osh-core'
38- userOrg = ' sensiasoft'
39- desc = ' OpenSensorHub Core Packages'
40- websiteUrl = ' https://github.com/opensensorhub/osh-core'
41- issueTrackerUrl = ' https://github.com/opensensorhub/osh-core/issues'
42- vcsUrl = ' git://github.com/opensensorhub/osh-core.git'
43- licenses = [' MPL-2.0' ]
44- labels = [' sensor' , ' sensor hub' , ' ogc' , ' swe' , ' iot' ]
45- publicDownloadNumbers = true
46-
47- // githubRepo = 'opensensorhub/osh-core'
48- // githubReleaseNotesFile = 'RELEASE_NOTES.md'
25+ if (project. hasProperty(" bintray_user" )) {
26+ // bintray publishing options
27+ bintray {
28+ user = bintray_user
29+ key = bintray_api_key
30+
31+ publications = [' mavenJava' ]
32+ dryRun = false // whether to run this as dry-run, without deploying
33+ publish = true // whether version should be auto published after an upload
34+ override = true // whether to override version artifacts already published
35+
36+ pkg {
37+ repo = ' osh'
38+ name = ' osh-core'
39+ userOrg = ' sensiasoft'
40+ desc = ' OpenSensorHub Core Packages'
41+ websiteUrl = ' https://github.com/opensensorhub/osh-core'
42+ issueTrackerUrl = ' https://github.com/opensensorhub/osh-core/issues'
43+ vcsUrl = ' git://github.com/opensensorhub/osh-core.git'
44+ licenses = [' MPL-2.0' ]
45+ labels = [' sensor' , ' sensor hub' , ' ogc' , ' swe' , ' iot' ]
46+ publicDownloadNumbers = true
47+
48+ // githubRepo = 'opensensorhub/osh-core'
49+ // githubReleaseNotesFile = 'RELEASE_NOTES.md'
50+ }
4951 }
50- }
52+ }
5153}
5254
5355
0 commit comments