I do not see any API to get output proguard mapping file.
Probably it is correct, since a proper solution would be
if (variant.obfuscation instanceof ProguardTask) {
def mappingFile = variant.obfuscation.someNonExisintgPropertyInProguardTaskThatReturnesTheMappingFile
}
..but ProguardTask also does not have such an API.
I believe some time ago we did have some property to get this file...
Just tired of changing our internal publishing plugin due to mapping file relocations...
Should we poke Eric Lafortune for this?