Java and aspect files added to .gitattributes

Fixes #1001981