-
Notifications
You must be signed in to change notification settings - Fork 1.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
[#519] Add moditect-generated module-info.java files and a simple IT. #722
base: master
Are you sure you want to change the base?
Conversation
Did a quick test: |
Just a quick note, and this is probably obvious, but this can't be merged until after a 1.0 release due to the requirement for JDK 8. |
@lhazlewood this only requires Java 8 at RELEASE time, not at runtime. Are you sure this is what you intended to say? 🤔 Talked to @bdemers the other day about it. We were thinking of a release profile which included an enforcer check for JDK8. I really don't see why this needs to go into the next major version and couldn't be included in 0.12.0. |
Also, you might just have read past my comments mentioning 1.7 profiles and you probably just forgot to start the CI jobs. |
Oohhhh I see what you mean now. But it's only for building a release with the moditect files included. It still is running on (read carefully): JRE 7! I updated the description to emphasize the difference between a JDK and JRE and build time and runtime. Of course you know, but I put the blame on me not being a native speaker. 🙈 |
Huh… I cannot get the CI to work. Groovy is generating this class public class NoServiceDescriptorClassLoader
extends java.lang.ClassLoader implements
groovy.lang.GroovyObject {
;
public NoServiceDescriptorClassLoader
(java.lang.ClassLoader parent) {
super((java.lang.String) null, (java.lang.ClassLoader) null);
}
} ... oddly this fails on zulu-11 and temurin-11, but not on IBM Semeru-11. This is the Semeru Constructor:
This for Zulu/Temurin:
Will dig into it later. |
@bmarwell can you revisit this PR? |
Only if @lhazlewood approves. Otherwise I'm not investing time here... |
@bmarwell you said:
But we didn't hear anything further, so I never spent any further time reviewing since apparently it was still a work in progress. Additionally, we only use JDK 7 at release time, so this will have to wait until JDK 7 is dropped anyway. |
This is the actual blocker. I forgot the reason you did not wand to have JDK 9, 11 or 17 for build (which can compile to 7 just fine). I think this PR added a profile which enabled compiling on 9+, so the module-info would only have been present when the build would have been done with JDK 9+ (otherwise it was just missing, which is not good). Anyway,
Probably just an update of dependencies as of now. Feel free to ping me if you are open to building with at least JDK 9 (target/release does not matter). Sorry I forgot to look into it. Will do a quick rebase anyway, but it will include JDK11 for building the JDK 7 release, just as a PoC. Can change that later. |
5066c68
to
1395d95
Compare
New rebased and squashed uses module-info in |
Fixes #519