Skip to content

Commit 4f8106e

Browse files
committed
[CODEC-242] Add Automatic-Module-Name manifest entry for Java 9.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1811898 13f79535-47bb-0310-9956-ffa450edef68
1 parent 90c302c commit 4f8106e

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

pom.xml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,20 @@ limitations under the License.
266266
</configuration>
267267
</plugin>
268268

269-
<!-- Exclude cli from binary jar -->
269+
<!-- Exclude cli from binary jar and add Java 9 Automatic-Module-Name -->
270270
<plugin>
271-
<groupId>org.apache.maven.plugins</groupId>
272-
<artifactId>maven-jar-plugin</artifactId>
273-
<configuration>
274-
<excludes>
275-
<exclude>**/cli/**</exclude>
276-
</excludes>
277-
</configuration>
271+
<artifactId>maven-jar-plugin</artifactId>
272+
<configuration>
273+
<archive combine.children="append">
274+
<!-- Temporary fix, remove this after this has implemented in parent pom -->
275+
<manifestEntries>
276+
<Automatic-Module-Name>${commons.module.name}</Automatic-Module-Name>
277+
</manifestEntries>
278+
</archive>
279+
<excludes>
280+
<exclude>**/cli/**</exclude>
281+
</excludes>
282+
</configuration>
278283
</plugin>
279284

280285
<!-- Create CLI jar -->

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ The <action> type attribute can be add,update,fix,remove.
7979
<action issue="CODEC-203" dev="ggregory" type="add" due-to="Gary Gregory">Add convenience method decodeHex(String).</action>
8080
<action issue="CODEC-205" dev="ggregory" type="add" due-to="Gary Gregory">Add faster CRC32 implementation.</action>
8181
<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>
82+
<action issue="CODEC-242" dev="ggregory" type="add" due-to="Gary Gregory">Add Automatic-Module-Name manifest entry for Java 9.</action>
8283
</release>
8384
<release version="1.10" date="5 November 2014" description="Feature and fix release.">
8485
<action dev="ggregory" type="add" issue="CODEC-192" due-to="Thomas Neidhart">Add Daitch-Mokotoff Soundex</action>

0 commit comments

Comments
 (0)