Skip to content

Commit 414979f

Browse files
committed
IO-747 Make commons-io a proper JPMS module
1 parent 319a540 commit 414979f

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ file comparators, endian transformation classes, and much more.
235235
<contributor>
236236
<name>Frank W. Zammetti</name>
237237
</contributor>
238+
<contributor>
239+
<name>Martin Grigorov</name>
240+
<email>mgrigorov@apache.org</email>
241+
</contributor>
238242
</contributors>
239243

240244
<dependencyManagement>
@@ -342,6 +346,8 @@ file comparators, endian transformation classes, and much more.
342346
<commons.release.isDistModule>true</commons.release.isDistModule>
343347
<commons.releaseManagerName>Gary Gregory</commons.releaseManagerName>
344348
<commons.releaseManagerKey>86fdc7e2a11262cb</commons.releaseManagerKey>
349+
<moditect-maven-plugin.version>1.0.0.RC1</moditect-maven-plugin.version>
350+
<moditect.skip>true</moditect.skip>
345351
</properties>
346352

347353
<build>
@@ -483,6 +489,30 @@ file comparators, endian transformation classes, and much more.
483489
<groupId>com.github.siom79.japicmp</groupId>
484490
<artifactId>japicmp-maven-plugin</artifactId>
485491
</plugin>
492+
<plugin>
493+
<groupId>org.moditect</groupId>
494+
<artifactId>moditect-maven-plugin</artifactId>
495+
<version>${moditect-maven-plugin.version}</version>
496+
<executions>
497+
<execution>
498+
<id>add-module-infos</id>
499+
<phase>package</phase>
500+
<goals>
501+
<goal>add-module-info</goal>
502+
</goals>
503+
<configuration>
504+
<jvmVersion>9</jvmVersion>
505+
<outputDirectory>${project.build.directory}</outputDirectory>
506+
<overwriteExistingFiles>true</overwriteExistingFiles>
507+
<module>
508+
<moduleInfo>
509+
<name>commons.io</name>
510+
</moduleInfo>
511+
</module>
512+
</configuration>
513+
</execution>
514+
</executions>
515+
</plugin>
486516
</plugins>
487517
</build>
488518

@@ -600,5 +630,13 @@ file comparators, endian transformation classes, and much more.
600630
</plugins>
601631
</build>
602632
</profile>
633+
<profile>
634+
<id>release</id>
635+
<properties>
636+
<!-- Enable Moditect for releases. This requires JDK 9+ for the build -->
637+
<moditect.skip>false</moditect.skip>
638+
<maven.compiler.release>8</maven.compiler.release>
639+
</properties>
640+
</profile>
603641
</profiles>
604642
</project>

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ The <action> type attribute can be add,update,fix,remove.
203203
<action dev="ggregory" type="update" due-to="Dependabot">
204204
Bump jmh.version from 1.32 to 1.33 #258.
205205
</action>
206+
<action dev="mgrigorov" type="update">
207+
IO-747 Make commons-io a JPMS module by adding module-info.class.
208+
</action>
206209
</release>
207210
<release version="2.11.0" date="2021-07-09" description="Java 8 required.">
208211
<!-- FIX -->

0 commit comments

Comments
 (0)