From 3c272f850ad8d3e762b0a895101b26f3fc4ba1bd Mon Sep 17 00:00:00 2001 From: eronwright Date: Tue, 29 Oct 2019 12:08:46 -0700 Subject: [PATCH] Support for release builds Signed-off-by: eronwright --- build.gradle | 7 ++++++- gradle.properties | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 841fd39..047dd53 100644 --- a/build.gradle +++ b/build.gradle @@ -89,7 +89,12 @@ subprojects { contextUrl = publishUrl publish { repository { - repoKey = publishRepo + if (publishRepo?.trim()) { + repoKey = publishRepo + } + else if ("https://oss.jfrog.org" == "$publishUrl") { + repoKey = project.version.endsWith("-SNAPSHOT") ? "oss-snapshot-local" : "oss-release-local" + } username = publishUsername password = publishPassword } diff --git a/gradle.properties b/gradle.properties index b02f063..2fb0923 100644 --- a/gradle.properties +++ b/gradle.properties @@ -17,7 +17,7 @@ mockitoVersion=2.23.0 publishUsername= publishPassword= publishUrl=https://oss.jfrog.org -publishRepo=oss-snapshot-local +publishRepo= bintrayOrgName=pravega bintrayRepoName=pravega