Open zimmi opened 3 years ago
Oh, damm! I haven't pushed my commit for Java 8 compatibility I've made a year ago :facepalm: Pushed them now.
Haha, always good to be prepared! I'll take a look.
@rzymek I rebased onto master and switched back to target Java 8. Please take another look.
Note: The project still has to be compiled with Java 9+ so the compiler understands the module-info. If building with Java 8 is needed, we could use https://github.com/moditect/moditect (generates module-info.class by ASM magic).
I also took the liberty to do the following things, please tell me if I should revert some of them:
The
--add-opens
args for surefire are needed because JUnit reflectively calls the package private test methods, and that's not allowed when we are a module. An alternative would be to make every test class / method public, but that will probably just annoy future developers while providing little gain.