Skip to content

Commit

Permalink
Add java modules
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobIDR committed Oct 8, 2024
1 parent a262409 commit 28e67b9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,29 @@
</execution>
</executions>
</plugin>

<plugin>
<!-- We don't want to deal with module info needing to be compiled in the context of the
packages, so this plugin sorts it for us -->
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>1.2.2.Final</version>
<executions>
<execution>
<id>add-module-info</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
</execution>
</executions>
<configuration>
<overwriteExistingFiles>true</overwriteExistingFiles>
<module>
<moduleInfoFile>src/main/java-modules/module-info.java</moduleInfoFile>
</module>
</configuration>
</plugin>
</plugins>
<finalName>${finalName}-${project.version}</finalName>
</build>
Expand Down
5 changes: 5 additions & 0 deletions src/main/java-modules/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module com.idrsolutions.jdeli_imageio_plugin {
requires java.desktop;

exports com.idrsolutions;
}

0 comments on commit 28e67b9

Please sign in to comment.