Build an .aar with all dependencies
<p>I am building an SDK for Android that should be exported as an .aar file.</p>

<p>The SDK has a list of dependencies defined in its build.gradle file, for example:</p>

<pre><code>compile 'com.makeramen:roundedimageview:2.2.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.google.android.gms:play-services-ads:9.0.2'
</code></pre>

<p>My question is: how do i include these libraries in the .aar, so that it is self-contained and does not require the developer using it to add these libraries when using my SDK? </p>

<p>I have looked everywhere for this, but most answers don't seem to address this issue or don't work.</p>