The following task (in build.gradle of an app's module) seems to run always before the apk is produced:

```
android.applicationVariants.all { variant ->
    if (variant.buildType.name == 'release') {
            def releaseBuildTask = tasks.create(name: "debug") {
            println("....................  test   ..............................")
        }
        releaseBuildTask.mustRunAfter variant.assemble
    }
}

```

Could anyone offer a tip on how to run a task after the apks are produced?