Last active
April 25, 2021 19:49
-
-
Save mmobin789/303846bd7edd2c91399cbd3a6b6ad4f0 to your computer and use it in GitHub Desktop.
A sample library module's maven central's custom plugged in file.
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: 'com.android.library' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'com.vanniktech.maven.publish' // NEW | |
publishing { | |
repositories { // by default upload tasks points to the legacy URl which will be down on sunset and all new repos should use the one similar to below. | |
maven { | |
// change to point to your repo, e.g. http://my.org/repo | |
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2" | |
credentials { // using tokenized username and password per maven for security. | |
username = ossrhUsername // jira-username (nexus UI username or username token | |
password = ossrhPassword //jira-password (nexus UI password or password token) | |
} | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment