when building an aar file using gradle, how can I copy the created release aar to some other directory ? (I do not want to change the default output dir just to copy the release file )
Assuming you are not using any flavors, and you are not changing the AAR name, you can use something like the following task:
task copyAAR(type: Copy) {
from('build/outputs/aar')
into('/path/to/desired/output/dir')
include(project.name + '-release.aar')
}
If you changed the AAR name, replace 'project.name' with that name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With