Skip to content

Instantly share code, notes, and snippets.

@prasad79
Created December 17, 2019 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prasad79/9558c73a820f53b329067620bdede31b to your computer and use it in GitHub Desktop.
Save prasad79/9558c73a820f53b329067620bdede31b to your computer and use it in GitHub Desktop.
Publishing Android library to Github Packages using Kotlin DSL - customise publications
publishing {
publications {
create<MavenPublication>("gpr") {
run {
groupId = "com.enefce.libraries"
artifactId = getArtificatId()
version = getVersionName()
artifact("$buildDir/outputs/aar/${getArtificatId()}-release.aar")
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment