diff --git a/project/Bintray.scala b/project/Bintray.scala index 98dbdbef..5ec67c4f 100644 --- a/project/Bintray.scala +++ b/project/Bintray.scala @@ -5,6 +5,7 @@ import bintray.BintrayKeys._ object Bintray { + lazy val isPullRequest = sys.env.getOrElse("TRAVIS_PULL_REQUEST", "false") != "false" lazy val (user, pass) = { if (isPullRequest) ("dummyUser", "dummyPass") else (sys env "bintrayUser", sys env "bintrayKey") @@ -25,7 +26,6 @@ object Bintray { }, storeBintrayCredentials := { - val isPullRequest = sys.env.getOrElse("TRAVIS_PULL_REQUEST", "false") != "false" IO.write(bintrayCredentialsFile.value, api.template(user, pass)) },