I'm using custom sign task.
I'm iterate over project.android.applicationVariants and setup necessary tasks and set variant.outputsAreSigned = true
But in the Gradle 2.3.X it stop working, probably becouse of some optimalisation, because project.android.applicationVariants is empty there.
There will be probably something special which will contain just one variant choosed by "Build Variants" window.
Can somebody helps me how to setup sign for release build also in the IDE builds?