[
https://issues.apache.org/jira/browse/PDFBOX-5481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17571857#comment-17571857
]
Andreas Lehmkühler edited comment on PDFBOX-5481 at 7/31/22 11:55 AM:
----------------------------------------------------------------------
[~lehmi]
There are several ways to implement this feature, like using the Moditect
plugin and so on. However, I like to use the Maven compiler this way
{noformat}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<excludes>
<exclude>module-info.java</exclude>
</excludes>
<release>8</release>
</configuration>
</execution>
<execution>
<id>jdk11</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<release>11</release>
</configuration>
</execution>
</executions>
</plugin>{noformat}
was (Author: thihup):
[~lehmi]
There are several ways to implement this feature, like using the Moditect
plugin and so on. However, I like to use the Maven compiler this way
{noformat}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<excludes>
<exclude>module-info.java</exclude>
</excludes>
<release>8</release>
</configuration>
</execution>
<execution>
<id>jdk11</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<release>11</release>
</configuration>
</execution>
</executions>
</plugin>{noformat}
> Add module-info to the project
> ------------------------------
>
> Key: PDFBOX-5481
> URL: https://issues.apache.org/jira/browse/PDFBOX-5481
> Project: PDFBox
> Issue Type: Wish
> Reporter: Thiago Henrique Hupner
> Priority: Minor
>
> It would be great to provide module-info to the jars to allow simplified use
> with JLink
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]