ability to change repoKey and contextUrl
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/af225463 Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/af225463 Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/af225463 Branch: refs/heads/GROOVY_2_4_X Commit: af225463ef2365683dba1922a34dabb35f80ab2e Parents: 07994e1 Author: paulk <[email protected]> Authored: Sat Dec 17 16:40:33 2016 +1000 Committer: paulk <[email protected]> Committed: Sat Dec 17 16:43:13 2016 +1000 ---------------------------------------------------------------------- gradle/bintray.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/af225463/gradle/bintray.gradle ---------------------------------------------------------------------- diff --git a/gradle/bintray.gradle b/gradle/bintray.gradle index bd1e29b..c80cd45 100644 --- a/gradle/bintray.gradle +++ b/gradle/bintray.gradle @@ -36,7 +36,7 @@ allprojects { apply plugin: 'artifactory' artifactory { - contextUrl = 'https://oss.jfrog.org' + contextUrl = project.bintrayContext ?: 'https://oss.jfrog.org' resolve { repository { repoKey = 'libs-release' @@ -44,7 +44,7 @@ allprojects { } publish { repository { - repoKey = 'oss-snapshot-local' //The Artifactory repository key to publish to + repoKey = project.bintrayRepoKey ?: 'oss-snapshot-local' //The Artifactory repository key to publish to //when using oss.jfrog.org the credentials are from Bintray. For local build we expect them to be found in //~/.gradle/gradle.properties, otherwise to be set in the build server username = rootProject.bintrayUser
