Removing .java files from dependencies