This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'maven' | |
apply plugin: 'signing' | |
def isReleaseBuild() { | |
return VERSION_NAME.contains("SNAPSHOT") == false | |
} | |
def getReleaseRepositoryUrl() { | |
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL | |
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Make custom colorful Git prompt | |
# | |
function git_branch { | |
git symbolic-ref HEAD 2> /dev/null | sed 's/refs\/heads\/\(.*\)/\1/' | |
} | |
function git_prompt { | |
git=$(git_branch) | |
if test $git; then | |
echo " $git>" |