Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mmobin789/303846bd7edd2c91399cbd3a6b6ad4f0 to your computer and use it in GitHub Desktop.
Save mmobin789/303846bd7edd2c91399cbd3a6b6ad4f0 to your computer and use it in GitHub Desktop.
A sample library module's maven central's custom plugged in file.
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