Fix check modules and set default target to Java platform