Skip to content

Commit

Permalink
added correct upload repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario David committed Sep 22, 2017
1 parent 1be70f5 commit f6fe02e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def servletApi = 'org.apache.tomcat:tomcat-servlet-api:8.0.26'
apply(plugin: 'idea')
apply(plugin: 'cuba')


def bintrayRepositoryUrl = "https://api.bintray.com/maven/mariodavid/cuba-components/cuba-component-health-check/;publish=1"

cuba {
artifact {
group = 'de.diedavids.cuba.healthcheck'
Expand All @@ -42,13 +45,13 @@ cuba {
}
uploadRepository {
if (cuba.artifact.isSnapshot) {
url = System.env.UPLOAD_REPOSITORY_SNAPSHOT
url = System.properties['uploadRepositorySnapshot'] ?: System.env.UPLOAD_REPOSITORY_SNAPSHOT
} else {
url = System.env.UPLOAD_REPOSITORY_RELEASE
url = System.properties['uploadRepositoryRelease'] ?: System.env.UPLOAD_REPOSITORY_RELEASE ?: bintrayRepositoryUrl
}

user = System.env.UPLOAD_REPOSITORY_USERNAME
password = System.env.UPLOAD_REPOSITORY_PASSWORD
user = System.properties['uploadRepositoryUsername'] ?: System.env.UPLOAD_REPOSITORY_USERNAME
password = System.properties['uploadRepositoryPassword'] ?:System.env.UPLOAD_REPOSITORY_PASSWORD
}
ide {

Expand Down

0 comments on commit f6fe02e

Please sign in to comment.