Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

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

Open
tprochazka opened this issue Nov 17, 2016 · 1 comment

Comments

@tprochazka
Copy link

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.

@thevery
Copy link

thevery commented Dec 1, 2016

check #11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants