gradle script now detetes resources and class folders in build once building is complete to prevent gradle not updating version numbers if source set wasn't changed.