diff --git a/ethereumj-core/build.gradle b/ethereumj-core/build.gradle index 30b2a8a2..ea07e155 100644 --- a/ethereumj-core/build.gradle +++ b/ethereumj-core/build.gradle @@ -157,7 +157,7 @@ artifactory { artifactoryPublish.onlyIf { (!pullRequest || pullRequest == 'false') && - project.version.endsWith('-SNAPSHOT') && (branchName.equals('master')) + project.version.endsWith('-SNAPSHOT') && (branchName == 'master') } bintray { @@ -186,6 +186,8 @@ install { } task publish { + + print "publishing if master current branch: " + branchName description = "Publishes snapshots to oss.jfrog.org and releases to Bintray/JCenter" dependsOn artifactoryPublish, bintrayUpload }