'Generate signed apk from gradle command line

enter image description herefor usual Build apk I run command gradlew assembleRelease, but if i want to generate signed apk with keystore path and password, what command should apply? Andorid studio has manu for such build, but I need a gradle command



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source