Add .gitattributes for java from https://github.com/Danimoth/gitattributes/blob/master/Java.gitattributes