Skip to content

Instantly share code, notes, and snippets.

View uOOOO's full-sized avatar
💤
AFK

SeungHun Choe uOOOO

💤
AFK
  • Seoul, South Korea
View GitHub Profile
@Robyer
Robyer / maven-publish-helper-usage.gradle
Last active February 20, 2025 14:37
Gradle script for publishing Android library with sources and javadoc to Maven repository using maven-publish plugin.
// You can use maven-publish-helper.gradle script without changes and even share it between multiple
// modules. Just place the maven-publish-helper.gradle file in the root directory of your project,
// then apply it at the bottom of your module's build.gradle file like this:
// ...content of module's build.gradle file...
apply from: '../maven-publish-helper.gradle'
publishing {
publications {
@zhcnxf
zhcnxf / build.gradle
Last active May 7, 2020 16:15
Deploy aar file to maven repository for each flavor
apply plugin: 'maven-publish'
afterEvaluate {
android.libraryVariants.each { variant ->
if (variant.buildType.name == "release") {
publishing.publications.create variant.flavorName, MavenPublication, {
groupId "$group"
version "$version"
artifactId "$project.name-$variant.flavorName"
artifact variant.outputs.outputFile.get(0)