Update build.gradle for compatibility with jenkins