Update gradle template to work with WebApp.