diff --git a/build.gradle b/build.gradle index c71f410ced..3534d3b3d1 100644 --- a/build.gradle +++ b/build.gradle @@ -244,7 +244,7 @@ publishing { artifactoryPublish { onlyIf { - System.env.'TRAVIS_BRANCH' == "master" + System.env.'TRAVIS_BRANCH' == "master" && !System.env.'TRAVIS_PULL_REQUEST'.toBoolean() } dependsOn assemble }