title: How does publishing android libraries that can be imported easily by other people work?
body: <p>It is possible to easily use third party libraries with gradle. For example, the following allows me to use Retrofit in my app.</p>
  
  <pre><code>   dependencies {
         compile 'com.squareup.retrofit:retrofit:1.9.0'
     }
  </code></pre>
  
  <p>How does this work? Where does the library come from? In general terms, how would I go about publishing a library so that other people can import it like this?</p>
  
  <p>Note: this is not a duplicate of <a href="https://stackoverflow.com/questions/27153034">Publish jar library to bintray using gradle</a><a href="https://stackoverflow.com/questions/27153034/publish-jar-library-to-bintray-using-gradle">/publish-jar-library-to-bintray-using-gradle</a>. That question was asking a spefic question about one particular way to publish libraries.</p>