Change the module-info.java so that the junit package is only opened to org.junit.jupiter (if needed) and the test module.