Fix build.gradle

Fix build.gradle when deleting exiting tests by excluding java folder.