title: Publishing artifact to remote maven repository on s3 using Gradle
body: <p>I've been researching and trying to find examples for the above and found the following:</p>
  
  <p><strong>For Android Projects:</strong></p>
  
  <p><a href="http://ryanharter.com/blog/2015/06/18/hosting-a-private-maven-repo-on-amazon-s3/" rel="nofollow">Hosting a Private Maven Repo on Amazon S3</a></p>
  
  <p><a href="https://github.com/chrisbanes/gradle-mvn-push" rel="nofollow">gradle maven push project</a></p>
  
  <p>These plugin however expects certain Android properties specified and throws errors like <code>Could not find property 'android' on task ':androidJavadocs'.</code></p>
  
  <p><strong>For Remote repositories over SFTP</strong>, there is <a href="https://docs.gradle.org/current/userguide/publishing_maven.html" rel="nofollow"><code>maven-publish</code></a>.</p>
  
  <p>Besides, it seems to be possible to do this <a href="http://www.yegor256.com/2015/09/07/maven-repository-amazon-s3.html" rel="nofollow">in Maven</a>. </p>
  
  <p>Would be great if anyone can point me to an example of how to do this.</p>