-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add java module-info (#314 / #326) #326
Conversation
Bukama
commented
Aug 29, 2020
•
edited
edited
Local build successful. What do you think @sormuras ? |
# Conflicts: # gradle/wrapper/gradle-wrapper.properties
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.
LGTM
Not 100% sure about the module name, since JUnit Pioneer has different projects as well as Pioneer itself. Maybe it should be |
I understand what you mean and I'm more one your side. Cause that I wrote it the current way is Nicolais version of the file (which I nearly did not modify). I have in mind that he chose the name by purpose, but I can't remember exactly. |
Talked with Nicolai about the name and we most probably go for the double name to divide groupid / artefactid (or organization / reponame). We don't want to introduce "xp / expension pack" as this name is not common around. So we have to live with decisions from the past aka the double name in the repo. edit: done |
Would be great to have a "0.9.1" release with this PR merged ... to double-check the double name and modular resolution via Bach (aka Mozart). |
Note; module-info gets not into JAR We use internal classes of JUnit5, that must be changed. |
@sormuras After adding moditect the whole gradle files is red, IntellJ removes main and test from sources (and you have to restore it) and when trying to execute it it fails that it does not find the plugin
Are you sure this plugin is ready to use? Edit: Adding just the dependency for moditect turns into the NPE |
Seems like the |
But doesn't the source compatability need to be changed to 11? 🤷♂️ |
Forget what I've said. I tried to update the build. @beatngu13 & @aepfli Please have a look if I did it right. Never changed a Github Action before. |
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.
Lgtm - the gha changes, hard to read the rest on mobile
As fiddeling in the main was too much for me I added the "new" How do I pass the argument correctly to Gradle? edit: Fixed, thanks @Michael1993 |
But Junit is not found
The module info can't be parsed by checkstyle.xml see: https://checkstyle.sourceforge.io/config_filefilters.html#BeforeExecutionExclusionFileFilter
Job for building with modules on Java 11 and 14 added. |
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.
- JitPack-based build of your branch looks good.
https://jitpack.io/com/github/Bukama/junit-pioneer/bishue314~modules-SNAPSHOT/build.log jar --describe-module --file junit-pioneer-bishue314_modules-v0.3.3-gdbbd460-133.jar
yields
org.junitpioneer.junitpioneer@0.9.1 jar:file:///.../junit-pioneer-bishue314_modules-v0.3.3-gdbbd460-133.jar/!module-info.class
exports org.junitpioneer.jupiter
exports org.junitpioneer.jupiter.params
exports org.junitpioneer.vintage
requires java.base mandated
requires org.junit.jupiter.api
requires org.junit.jupiter.params
requires org.junit.platform.commons
Kudos, SonarCloud Quality Gate passed! 0 Bugs |