android-maven-gradle-plugin icon indicating copy to clipboard operation
android-maven-gradle-plugin copied to clipboard

Missing "<packaging>aar</packaging>" on multi flavor libraries with "publishNonDefault true"

Open tprochazka opened this issue 8 years ago • 1 comments

Normally when I deploy Android AA library to the maven artifactory pom.xml contains aar element. But when I need to deploy more variant of the library with more classifiers by this config:

apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

archivesBaseName = 'test-library'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.0"
    defaultConfig {
        minSdkVersion 15
        targetSdkVersion 25
    }

    publishNonDefault true

    productFlavors {
        oem
        vanilla
    }
}

It correctly generate

test-library-1.0.0-SNAPSHOT.pom test-library-1.0.0-SNAPSHOT-oemDebug.aar test-library-1.0.0-SNAPSHOT-oemRelease.aar test-library-1.0.0-SNAPSHOT-vanillaDebug.aar test-library-1.0.0-SNAPSHOT-vanillaRelease.aar

But the "aar" is missing in the generated pom file.

I'm not use if problem is in this library or in the android build plugin. I'm just trying to find solution.

tprochazka avatar Nov 17 '16 16:11 tprochazka

check #11

thevery avatar Dec 01 '16 11:12 thevery