This is an automated email from the ASF dual-hosted git repository. scolebourne pushed a commit to branch MATH_3_X in repository https://gitbox.apache.org/repos/asf/commons-math.git
The following commit(s) were added to refs/heads/MATH_3_X by this push: new 9e7c7c1 MATH-1486: Add Automatic-Module-Name to MANIFEST 9e7c7c1 is described below commit 9e7c7c192bebbc1dc0cea341e2a3c408d879bc25 Author: Stephen Colebourne <step...@opengamma.com> AuthorDate: Thu Jun 6 16:16:28 2019 +0100 MATH-1486: Add Automatic-Module-Name to MANIFEST For Java 9 and later --- pom.xml | 18 ++++++++++++++++++ src/changes/changes.xml | 3 +++ 2 files changed, 21 insertions(+) diff --git a/pom.xml b/pom.xml index 793a874..01bc118 100644 --- a/pom.xml +++ b/pom.xml @@ -367,6 +367,7 @@ (see "commons.osgi.symbolicName", below). --> <commons.componentid>math</commons.componentid> <!-- This value must reflect the current name of the base package. --> + <commons.module.name>org.apache.commons.math3</commons.module.name> <commons.osgi.symbolicName>org.apache.commons.math3</commons.osgi.symbolicName> <!-- do not use snapshot suffix here --> <commons.release.version>3.6.2-SNAPSHOT</commons.release.version> @@ -426,6 +427,23 @@ </excludes> </configuration> </plugin> + <!-- Add Java 9 module name to MANIFEST.MF, only for main jar, not test jar --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <executions> + <execution> + <id>default-jar</id> + <configuration> + <archive> + <manifestEntries> + <Automatic-Module-Name>${commons.module.name}</Automatic-Module-Name> + </manifestEntries> + </archive> + </configuration> + </execution> + </executions> + </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> diff --git a/src/changes/changes.xml b/src/changes/changes.xml index a0bd27b..884c801 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -51,6 +51,9 @@ If the output is not quite correct, check for invisible trailing spaces! </properties> <body> <release version="TBD" date="TBD" description="TBD"> + <action dev="scolebourne" type="update" issue="MATH-1486"> + Add 'Automatic-Module-Name' for Java 9 and later. + </action> <action dev="ebourg" type="update" issue="MATH-1389" due-to="Christoph Dibak"> Performance improvement for Array2DRowRealMatrix.getSubMatrix() </action>