I\'m publishing libraries to an internal Sonatype Nexus repository.
Android Studio has a feature that automatically finds the correct source for a library that is refere
I have wrote a gradle plugin for this function. Hope it will help you.
----- edit ------
How to publish Android .aar sources?
android {
task sourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}
artifacts {
archives sourcesJar
}
uploadArchives {
repositories {
mavenDeployer {
...
}
}
}
}
It's not possible at the moment.