Configure build.gradle for Cloud Foundry compatibility