wupdigital / android-maven-publish

Modification of the standard Maven Publish plugin to be compatible with android-library projects (aar).
Apache License 2.0
326 stars 39 forks source link

How to specify the uploaded AAR file name #32

Closed fancygeek closed 5 years ago

fancygeek commented 5 years ago

I want to upload debug aar to maven local,What can i do.

warnyul commented 5 years ago

Use the components.androidDebug for specify debug artifacts to upload. Here an example:

publishing {
    publications {
        android.libraryVariants.all { variant ->

            "androidAarDebug"(MavenPublication) {
                from components.androidDebug
                groupId 'digital.wup.test-publish'
                artifactId 'test-publish'
                version "1.0.0-debug-SNAPSHOT"
            }
        }
    }
}