This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-parent.git


The following commit(s) were added to refs/heads/master by this push:
     new 77b9e98  Add moditect profile for JPMS
     new 051f666  Merge branch 'master' of 
https://gitbox.apache.org/repos/asf/commons-parent
77b9e98 is described below

commit 77b9e98d2d4e38258b01a1109957b2f2c861cc38
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Jul 21 09:37:07 2023 -0400

    Add moditect profile for JPMS
---
 pom.xml                 | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 src/changes/changes.xml |  1 +
 2 files changed, 47 insertions(+)

diff --git a/pom.xml b/pom.xml
index e19532a..3b96e03 100644
--- a/pom.xml
+++ b/pom.xml
@@ -153,6 +153,7 @@
     <commons.scm-publish.version>1.1</commons.scm-publish.version>
     <commons.enforcer-plugin.version>3.3.0</commons.enforcer-plugin.version>
     
<commons.buildnumber-plugin.version>3.2.0</commons.buildnumber-plugin.version>
+    
<commons.moditect-maven-plugin.version>1.0.0.Final</commons.moditect-maven-plugin.version>
     <commons.biz.aQute.bndlib.version>6.4.1</commons.biz.aQute.bndlib.version>
     <commons.junit.version>5.9.3</commons.junit.version>
 
@@ -241,6 +242,9 @@
     -->
     <commons.packageId>${project.artifactId}</commons.packageId>
 
+    <!-- JPMS -->
+    
<commons.module.name>org.apache.commons.${commons.packageId}</commons.module.name>
+
     <!-- Configuration properties for the OSGi maven-bundle-plugin -->
     
<commons.osgi.symbolicName>org.apache.commons.${commons.packageId}</commons.osgi.symbolicName>
     
<commons.osgi.export>org.apache.commons.*;version=${project.version};-noimport:=true</commons.osgi.export>
@@ -2002,6 +2006,48 @@
       </build>
     </profile>
 
+    <profile>
+      <id>moditect</id>
+      <activation>
+               <jdk>[9,)</jdk>
+         </activation>
+      <properties>
+        <moditect.java.version>9</moditect.java.version>
+      </properties>
+      <build>
+               <plugins>
+          <plugin>
+            <groupId>org.moditect</groupId>
+            <artifactId>moditect-maven-plugin</artifactId>
+            <version>${commons.moditect-maven-plugin.version}</version>
+            <executions>
+              <execution>
+                <id>add-module-infos</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>add-module-info</goal>
+                </goals>
+                <configuration>
+                  <jvmVersion>${moditect.java.version}</jvmVersion>
+                  <jdepsExtraArgs>
+                    <arg>--multi-release=${moditect.java.version}</arg>
+                  </jdepsExtraArgs>
+                  <outputDirectory>${project.build.directory}</outputDirectory>
+                  <overwriteExistingFiles>true</overwriteExistingFiles>
+                  <failOnWarning>false</failOnWarning>
+                  <module>
+                    <moduleInfo>
+                      <name>${commons.module.name}</name>
+                    </moduleInfo>
+                  </module>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+               </plugins>
+         </build>
+    </profile>
+
   </profiles>
 
 </project>
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 9ce7dba..7d9af1e 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -62,6 +62,7 @@ The <action> type attribute can be add,update,fix,remove.
     <body>
         <release version="59" date="2023-MM-DD" description="Version 59: 
Maintenance and update dependencies">
            <!-- ADD -->
+           <action type="add" dev="ggregory" due-to="Gary Gregory">Add 
moditect profile for JPMS.</action>
            <!-- FIX -->           
            <!-- UPDATE -->
            <action type="update" dev="ggregory" due-to="Dependabot">Bump 
various GitHub actions is /.github.</action>

Reply via email to