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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -