-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set 'junit' as Automatic-Module-Name
#1571
Conversation
Prior to this commit, `junit` was derived as the module name from the name of the JAR file. Now, `junit` is set as an explicit module name, stored in the MANIFEST.MF file, to ensure a smooth ride into the modular age for users of JUnit 4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should start the module name with "org.junit". See http://branchandbound.net/blog/java/2017/12/automatic-module-name/
I definitely think it's a good idea to have this in place in JUnit 4.13. Regarding what the automatic module name should be, well... that's of course debatable. If we look to the automatic module names for artifacts from JUnit 5 for inspiration, one would likely assume |
If we don't use However there is a good reason for using |
It's indeed tricky! Going with
That's a valid point. Plus, we didn't start using So maybe it is best to just stick with I'm torn....... 😇 |
Thanks for the lively discussion! Given the options, I think @kcooney Any objections? |
Pardon for joining late to the discussion -- but it basically resembles my thought process to propose Given, not many others will have such a
Looks consistent. |
I've decided to merge this PR so I can include it in 4.13-beta-1. We could still change it before releasing 4.13. |
Thanks, @sormuras! |
I updated the release notes. |
Thanks! 👌 |
I am confused as to why choosing a different name from the automatic module name would be a problem. If it was why would they recommended that we choose names based on the package(s) of the included classes? |
The We can't meet all requirements/recommendations. For me, it's a close call. |
Prior to this commit,
junit
was derived as the module name from the name of the JAR file. Now,junit
is set as an explicit module name, stored in the MANIFEST.MF file, to ensure a smooth ride into the modular age for users of JUnit 4.