Skip to content

Instantly share code, notes, and snippets.

@hernandazevedo
hernandazevedo / publishMavenBintray.gradle
Created April 19, 2021 13:46 — forked from gsavvid/publishMavenBintray.gradle
Gradle script for publishing Android Kotlin libraries to a Bintray repository using maven-publish plugin. With dependencies (also handling transitive: false and custom exclude rules), including sources and javadoc.
/**
* Publish Android Kotlin Library Helper
*
* This Gradle script is based on https://gist.github.com/Robyer/a6578e60127418b380ca133a1291f017.
* The difference is that:
* 1. It uses Dokka for generating Kotlin Javadoc.
* 2. It uses Jfrog's plugin for publishing to Bintray. If you don't want to publish to Bintray, simply remove all the Bintray-related code.
*
* NOTE: You need to add Dokka and Bintray to your classpath for the two plugins to work.
* Update the buildscript in your project's build.gradle with the following:
# Autocomplete
if [ -f /usr/local/git/contrib/completion/git-completion.bash ]; then
. /usr/local/git/contrib/completion/git-completion.bash
fi
# mostra se existem alterações no projeto (master/branch)
GIT_PS1_SHOWDIRTYSTATE=true
# necessário para o correto funcionamento da variável ‘__git_ps1’
source /usr/local/git/contrib/completion/git-prompt.sh
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@hernandazevedo
hernandazevedo / .bashrc
Created December 26, 2017 12:01 — forked from ricalo/.bashrc
Use git-bash from Android Studio terminal
if [ ! -z "${IDE}" -a "${IDE}" == "AndroidStudio" ]; then
cd $OLDPWD;
fi