Move the Java codes to a subdirectory.
Add an ignore file for the Java code.
Add a directory to the ignore list.
Relocate files to subdirectories.