From 022efafbcc3a88f1885322c9c47a38cf92418c83 Mon Sep 17 00:00:00 2001 From: Seth Goings Date: Fri, 2 Jan 2015 16:48:43 -0700 Subject: [PATCH] Only publish to oss.jfrog.org if TRAVIS_BRANCH is master --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index 0aad0b602a..c71f410ced 100644 --- a/build.gradle +++ b/build.gradle @@ -243,6 +243,9 @@ publishing { } artifactoryPublish { + onlyIf { + System.env.'TRAVIS_BRANCH' == "master" + } dependsOn assemble }