Fix NoClassDefFoundError from Gradle upgradle