Hi,
You'd need to copy/adapt/cleanup the compile_resources from the android_apk_or_module, and feed that new target to srcjar_deps of a
java_library(_java_target_name) {
supports_android = true
srcjar_deps = _srcjar_deps
}
then add _java_target_name to the dist_aar deps.
seams easy-peasy :-)