[math] Add module-info.java

Gili Tzabari <[email protected]>
Newsgroups gmane.comp.jakarta.commons.user
Message-ID <[email protected]>
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.