android - Missing POM in upload gradle maven flavours -
i'm designing aar library android , facing issue. since introduce flavors, pom files no longer uploaded. aar files still correctly uploaded without pom, library can't used.
here part of build.gradle file :
uploadarchives { repositories.mavendeployer { snapshotrepository(url: nexus_mavensnapshot) { authentication(username: nexus_username , password: nexus_password) } addfilter('legacyrelease') { artifact, file -> artifact.attributes.classifier.equals("legacyrelease") } addfilter('nbrelease') { artifact, file -> artifact.attributes.classifier.equals("nbrelease") } pom('nbrelease').artifactid = project.archivesbasename + "-nb"; pom('legacyrelease').artifactid = project.archivesbasename + "-legacy"; } }
the article found pertinent : https://discuss.gradle.org/t/how-can-i-upload-multiple-flavors-artifacts-with-different-pom-files-using-mavendeployer/5887
their answer manually upload pom don't want :)
any advice ?
edit : while trying pom back, removed, flavors , still no pom. needed remove was, hope :
publishnondefault true
Comments
Post a Comment