View MavenReleaseSample5.sh
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
gradlew publishMavenPublicationToMavenCentralRepository | |
gradlew closeAndReleaseRepository |
View MavenReleaseSample4.sh
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
gpg --keyserver hkp://keyserver.ubuntu.com --send-keys 0ABA0F98 | |
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 0ABA0F98 | |
View MavenReleaseSample3.sh
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
gpg: key 8190C4130ABA0F98 marked as ultimately trusted | |
gpg: revocation certificate stored as | |
'/home/mylocaluser/.gnupg/openpgp-revocs.d/CA925CD6C9E8D064FF05B4728190C4130ABA0F98.rev' | |
public and secret key created and signed. | |
pub rsa3072 2021-06-23 [SC] [expires: 2023-06-23] | |
CA925CD6C9E8D064FF05B4728190C4130ABA0F98 | |
uid Central Repo Test <central@example.com> | |
sub rsa3072 2021-06-23 [E] [expires: 2023-06-23] |
View MavenReleaseSample3.properties
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
signing.keyId=XYZABCXY //last 8 digits of .rev file | |
signing.password=Password | |
signing.secretKeyRingFile=/Users/username/.gnupg/secring.gpg | |
ossrhUsername=akshay2211 | |
ossrhPassword=Password | |
mavenCentralUsername=akshay2211 | |
mavenCentralPassword=Password |
View MavenReleaseSample2.properties
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
GROUP=io.ak1 | |
POM_ARTIFACT_ID=bubbletabbar | |
VERSION_NAME=1.0.7 | |
POM_NAME=bubbletabbar | |
POM_PACKAGING=aar | |
POM_DESCRIPTION=it is a bottom navigation bar with customizable bubble like tabs . | |
POM_INCEPTION_YEAR=2021 | |
POM_URL=https://github.com/akshay2211/BubbleTabBar | |
POM_SCM_URL=https://github.com/akshay2211/BubbleTabBar | |
POM_SCM_CONNECTION=scm:git@github.com:akshay2211/BubbleTabBar.git |
View MavenReleaseSample1.gradle
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
plugins { | |
id 'com.android.library' | |
id 'kotlin-android' | |
id 'com.vanniktech.maven.publish' | |
} |
View MavenReleaseSample.gradle
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
buildscript { | |
ext.kotlin_version = '1.5.0' | |
repositories { | |
mavenCentral() | |
google() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:4.2.1' | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
View gist:2686e44f56634880465e8630ac5f8342
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
# sudo su and run the following | |
sudo aptitude update | |
# install all dependencies | |
sudo aptitude -y install \ | |
python-pip \ | |
python2.7-dev \ | |
libssl-dev \ | |
libcurl4-openssl-dev \ |
View Oauth Authenticator
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
/** | |
* Created by akshay on 28/8/17. | |
*/ | |
public class TokenAuthenticator implements Authenticator { | |
private final Context c; | |
public TokenAuthenticator(Context c) { | |
this.c = c; | |
} |
View android-release-aar.gradle
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
// ./gradlew clean build generateRelease | |
apply plugin: 'maven' | |
def groupId = project.PUBLISH_GROUP_ID | |
def artifactId = project.PUBLISH_ARTIFACT_ID | |
def version = project.PUBLISH_VERSION | |
def localReleaseDest = "${buildDir}/release/${version}" | |
task androidJavadocs(type: Javadoc) { |
NewerOlder