You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2017/10/11 23:14:36 UTC

svn commit: r1811898 - in /commons/proper/codec/trunk: pom.xml src/changes/changes.xml

Author: ggregory
Date: Wed Oct 11 23:14:36 2017
New Revision: 1811898

URL: http://svn.apache.org/viewvc?rev=1811898&view=rev
Log:
[CODEC-242] Add Automatic-Module-Name manifest entry for Java 9.

Modified:
    commons/proper/codec/trunk/pom.xml
    commons/proper/codec/trunk/src/changes/changes.xml

Modified: commons/proper/codec/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/pom.xml?rev=1811898&r1=1811897&r2=1811898&view=diff
==============================================================================
--- commons/proper/codec/trunk/pom.xml (original)
+++ commons/proper/codec/trunk/pom.xml Wed Oct 11 23:14:36 2017
@@ -266,15 +266,20 @@ limitations under the License.
           </configuration>
       </plugin>
 
-      <!-- Exclude cli from binary jar -->
+      <!-- Exclude cli from binary jar and add Java 9 Automatic-Module-Name -->
       <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-jar-plugin</artifactId>
-          <configuration>
-              <excludes>
-                  <exclude>**/cli/**</exclude>
-              </excludes>
-          </configuration>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive combine.children="append">
+            <!-- Temporary fix, remove this after this has implemented in parent pom -->
+            <manifestEntries>
+              <Automatic-Module-Name>${commons.module.name}</Automatic-Module-Name>
+            </manifestEntries>
+          </archive>
+          <excludes>
+            <exclude>**/cli/**</exclude>
+          </excludes>
+        </configuration>
       </plugin>
 
       <!-- Create CLI jar -->

Modified: commons/proper/codec/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/changes/changes.xml?rev=1811898&r1=1811897&r2=1811898&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/changes/changes.xml (original)
+++ commons/proper/codec/trunk/src/changes/changes.xml Wed Oct 11 23:14:36 2017
@@ -79,6 +79,7 @@ The <action> type attribute can be add,u
       <action issue="CODEC-203" dev="ggregory" type="add" due-to="Gary Gregory">Add convenience method decodeHex(String).</action>
       <action issue="CODEC-205" dev="ggregory" type="add" due-to="Gary Gregory">Add faster CRC32 implementation.</action>
       <action issue="CODEC-224" dev="ggregory" type="add" due-to="Gary Gregory">Add convenience API org.apache.commons.codec.binary.Hex.encodeHexString(byte[]|ByteBuffer, boolean).</action>
+      <action issue="CODEC-242" dev="ggregory" type="add" due-to="Gary Gregory">Add Automatic-Module-Name manifest entry for Java 9.</action>
     </release>
     <release version="1.10" date="5 November 2014" description="Feature and fix release.">
       <action dev="ggregory" type="add" issue="CODEC-192" due-to="Thomas Neidhart">Add Daitch-Mokotoff Soundex</action>