You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "msgilligan (via GitHub)" <gi...@apache.org> on 2023/05/30 22:13:48 UTC
[GitHub] [commons-cli] msgilligan commented on pull request #21: Add module-info
msgilligan commented on PR #21:
URL: https://github.com/apache/commons-cli/pull/21#issuecomment-1569193238
> Recently I've been using the latest _maven-compiler-plugin_ and _maven-jar-plugin_ to support multi-release jars.
My understanding is that it is "perfectly fine" to put a `module-info.class` directly into a Java 8 JAR (i.e. there is no need for an MR JAR as the `module-info` will just be ignored.) For example Jakarta EE is doing it this way (for at least some of their JARs.) You still need tools that support doing this, but it is still simpler than making an MR-JAR.
I think this page has the info for how to do it with he maven-compiler-plugin:
https://maven.apache.org/plugins/maven-compiler-plugin/examples/module-info.html
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org