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