How Create Pom File In Android Studio For Artifactory?
I have uploaded .aar without pom.xml to artifactory and thus cannot load the library using gradle. I would be grateful if you tell me or show how it should look inside the pom.xml.
Solution 1:
From Android Gradle plugin 3.6.0 and higher you can use the afterEvaluate{}
publishing which allows you to publish build artifacts to an Apache Maven repository. It includes all the components for each build variant artifact in your app or library module (with the generated pom.xml).
More info you can find in the official Android documentation.
Have in mind that the repositories tag inside the pom.xml file (if you want to import dependencies from a custom source) it's skipped by the Android's gradle tasks for security reasons.
Last, you could use also the old classic way for the publication described by the JFrog official documentation.
Post a Comment for "How Create Pom File In Android Studio For Artifactory?"