Skip to content

Commit

Permalink
Added module-info.java using moditect plugin to preserve Java 8 compa…
Browse files Browse the repository at this point in the history
…tibility (#96)
  • Loading branch information
Auties00 authored Mar 10, 2024
1 parent 961358f commit e8d35a6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
<relativePath></relativePath>
</parent>
<groupId>com.googlecode.plist</groupId>
<artifactId>dd-plist</artifactId>
Expand Down Expand Up @@ -195,6 +196,27 @@
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>1.1.0</version>
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<overwriteExistingFiles>true</overwriteExistingFiles>
<module>
<moduleInfoFile>src/main/moditect/module-info.java</moduleInfoFile>
</module>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
Expand Down
5 changes: 5 additions & 0 deletions src/main/moditect/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module dd.plist {
exports com.dd.plist;

requires java.xml;
}

0 comments on commit e8d35a6

Please sign in to comment.