You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Jira)" <ji...@apache.org> on 2022/07/31 11:56:00 UTC
[jira] [Comment Edited] (PDFBOX-5481) Add module-info to the project
[ 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org