fixed gradle build files for deployment and simplified as recommended by kellyrob99