Skip to content
Permalink
Browse files

Enable local build in IDE without setting ENV

  • Loading branch information
Enrico Olivelli
Enrico Olivelli committed Dec 19, 2019
1 parent be2370c commit 7af5b37f81dc6ad944c42e843f1e0f08a29f82bd
Showing with 3 additions and 3 deletions.
  1. +3 −3 gradle/shipkit.gradle
@@ -11,8 +11,8 @@ shipkit {

// fix for Intellj Idea, because IDE does not read env properties from ${user.home}/.profile file on MacOS

gitHub.writeAuthUser = System.getenv("GH_USER")
gitHub.writeAuthToken = System.getenv("GH_WRITE_TOKEN")
gitHub.writeAuthUser = System.getenv("GH_USER") != null ? System.getenv("GH_USER") : "GH_USER-not-set-dev-mode";
gitHub.writeAuthToken = System.getenv("GH_WRITE_TOKEN") != null ? System.getenv("GH_WRITE_TOKEN"): "GH_WRITE_TOKEN-not-set-dev-mode";

def buildNo = System.getenv("TRAVIS_BUILD_NUMBER")
git.commitMessagePostfix = buildNo? "by CI build $buildNo\n\n[ci skip]" : "by local build\n\n[ci skip]"
@@ -106,4 +106,4 @@ static boolean shouldReleaseToCentral(project) {
project.logger.info(message)

return centralRelease
}
}

0 comments on commit 7af5b37

Please sign in to comment.
You can’t perform that action at this time.