-
Notifications
You must be signed in to change notification settings - Fork 4
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
Please support having non-module-enabled / auto-modules sub-projects #15
Comments
Auto-modules were thought as a solution to use old JARs with Jigsaw, and I think that making a project that contains both modular code, and a non-modular application is a misuse. Is there any reason that your Anyway, there is an easy workaround for that: create a subproject for all Jigsaw subprojects, and apply |
I'm just writing the build for the already existing project. I'm not sure your workaround would work, your plugin would then not modify the generated start scripts for example. |
OK, so basically - you want to have an automatic module with Let's say that the behavior could look like this:
I think that compiling the auto-module in Jigsaw mode makes little sense, because you would need a lot of extra flags to emulate the missing module descriptor, and you don't run a library. In case of application, you have some benefits of running JVM in Jigsaw mode, even if the main project is an auto-module. Do you think such a design would solve your use case? |
I guess so. |
Btw. while trying to make the application project a module, I found out why they did not and got another user-case where this here is necessary. |
Have you tried adding them, using a pre-JDK9 legacy mechanism? I mean putting an entry in https://docs.oracle.com/javase/7/docs/api/java/util/ServiceLoader.html |
That is only partly legacy. You still use the |
OK, just post me a link to the original Log4j issue, so that I could replicate it in the integration tests. |
The log4j issue is https://issues.apache.org/jira/browse/LOG4J2-2129, but it is not really directly relevant and I even got it working now differently, so the example was maybe not good. |
If you mix module-enabled projects and non-module-enabled projects (auto-modules), your plugin fails during module-name detection.
In my case the
application
subproject does not have amodule-info.java
.Not doing anything might still be the wrong way here, as e. g. the start scripts need manipulation non-the-less.
The text was updated successfully, but these errors were encountered: