title: Create Android library AAR including javadoc and sources
body: <p>My team is developing an Android library, to be used in some example applications, also developed by us.  The library is created as an AAR file. Here is its build.gradle</p>
  
  <pre><code>apply plugin: 'com.android.library'
  apply from: 'deploy.gradle'
  
  android {
      compileSdkVersion 20
      buildToolsVersion '20.0.0'
      packagingOptions {
          exclude 'LICENSE.txt'
          exclude 'LICENSE'
          exclude 'NOTICE'
      }
      defaultConfig {
          // Excluded for brevity
      }
      buildTypes {
          release {
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      lintOptions {
          abortOnError false
          // if true, check all issues, including those that are off by default
          checkAllWarnings true
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:support-v13:20.0.+'
      compile 'com.google.android.gms:play-services:5.+'
      compile 'com.squareup.retrofit:retrofit:1.6.1'
  }
  </code></pre>
  
  <p>Here is the dependencies part of the app's build.gradle</p>
  
  <pre><code>dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile ('com.mycompany.myapp:0.6.5-SNAPSHOT@aar') {
          transitive = true
          downloadJavadoc = true
          downloadSources = true
      }
  }
  </code></pre>
  
  <p>I can use all the lib classes, but I can't see the Javadocs nor the sources. How can I package my AAR so it includes the sources and Javadocs?</p>