Re: [math] Add module-info.java

Gary Gregory <[email protected]>
Newsgroups gmane.comp.jakarta.commons.user
Message-ID <CACZkXPx9U-yY=aHK80RzVb0SNMuf6QYs3eOgw3c60o9QcT0kxw@mail.gmail.com>
The commons-parent POM automatically creates module-info.java files. A
Commons component should not have to do anything beyond using a recent
version.

Gary

On Thu, Mar 14, 2024, 8:03 PM Gili Tzabari <[email protected]> wrote:

> Hi,
>
> I'd like Commons Math to add module-info.java to all the components. I
> noticed that you are adding a "Automatic-Module" entry in META-INF but
> this isn't enough for jlink (and related tools) to work properly. We
> absolutely need to add module-info.java.
>
> You just need to add a few lines to pom.xml to turn your releases into
> multirelease JAR files and you're done. Here is the code I lifted from
>
> https://medium.com/@ankitagrahari.rkgit/multi-release-functionality-8fc423b6c94e
> :
>
> |<execution> <id>java11</id> <goals><goal>compile</goal></goals>
> <configuration> <release>11</release>
> <compileSourceRoots>${project.basedir}/src/main/java11</compileSourceRoots>
>
> <multiReleaseOutput>true</multiReleaseOutput> </configuration>
> </execution> |
>
> ||
>
> |Gili|
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.