title: How create pom file in android studio for artifactory?
body: <p>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.
  If someone knows how to create the desired content file, then it will be great.</p>
  <p>I tried to create pom.xml using the code in gradle below, but it seems to me that this is the wrong option.</p>
  <pre><code>task writePom {
      doLast {
          pom {
              project {
                  groupId 'com.someth.someth'
                  artifactId 'name'
                  version '1.1'
                  url=&quot;http://someth.com/artifactory/someth_pr/someth-release.aar&quot;
              }
          }.writeTo(&quot;pom.xml&quot;)
      }
  }
  </code></pre>
  <p>I used url to show where to get my .aar file.</p>
  <p>When I put my generated pom.xml file in artifactory and decided to do &quot;Sync now&quot; gradle gave an error:</p>
  <blockquote>
  <p>Failed to resolve: com.someth.someth:name:1.1</p>
  </blockquote>