Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 9 explicit module-info #187

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions debugger/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,6 @@
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>org.apache.pdfbox.debugger</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

</project>
Expand Down
22 changes: 22 additions & 0 deletions debugger/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module org.apache.pdfbox.debugger {
requires org.apache.pdfbox;
requires java.desktop;
requires org.apache.pdfbox.io;
requires org.apache.logging.log4j;
requires org.apache.fontbox;
requires info.picocli;
requires java.prefs;
requires org.apache.logging.log4j.core;
exports org.apache.pdfbox.debugger;
exports org.apache.pdfbox.debugger.colorpane;
exports org.apache.pdfbox.debugger.flagbitspane;
exports org.apache.pdfbox.debugger.fontencodingpane;
exports org.apache.pdfbox.debugger.hexviewer;
exports org.apache.pdfbox.debugger.pagepane;
exports org.apache.pdfbox.debugger.streampane;
exports org.apache.pdfbox.debugger.streampane.tooltip;
exports org.apache.pdfbox.debugger.stringpane;
exports org.apache.pdfbox.debugger.treestatus;
exports org.apache.pdfbox.debugger.ui;
exports org.apache.pdfbox.debugger.ui.textsearcher;
}
5 changes: 0 additions & 5 deletions fontbox/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Automatic-Module-Name>org.apache.fontbox</Automatic-Module-Name>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
Expand Down
19 changes: 19 additions & 0 deletions fontbox/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module org.apache.fontbox {
requires java.desktop;
requires org.apache.logging.log4j;
requires org.apache.pdfbox.io;
exports org.apache.fontbox;
exports org.apache.fontbox.afm;
exports org.apache.fontbox.cff;
exports org.apache.fontbox.cmap;
exports org.apache.fontbox.encoding;
exports org.apache.fontbox.pfb;
exports org.apache.fontbox.ttf;
exports org.apache.fontbox.ttf.gsub;
exports org.apache.fontbox.ttf.model;
exports org.apache.fontbox.ttf.table.common;
exports org.apache.fontbox.ttf.table.gsub;
exports org.apache.fontbox.type1;
exports org.apache.fontbox.util;
exports org.apache.fontbox.util.autodetect;
}
5 changes: 0 additions & 5 deletions io/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Automatic-Module-Name>org.apache.pdfbox.io</Automatic-Module-Name>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
Expand Down
4 changes: 4 additions & 0 deletions io/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module org.apache.pdfbox.io {
requires org.apache.logging.log4j;
exports org.apache.pdfbox.io;
}
1 change: 0 additions & 1 deletion pdfbox/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@
META-INF=target/maven-shared-archive-resources/META-INF,
org/apache/pdfbox/resources=target/classes/org/apache/pdfbox/resources
</Include-Resource>
<Automatic-Module-Name>org.apache.pdfbox</Automatic-Module-Name>
</instructions>
</configuration>
</plugin>
Expand Down
65 changes: 65 additions & 0 deletions pdfbox/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
module org.apache.pdfbox {
requires java.desktop;
requires org.apache.logging.log4j;
requires org.apache.pdfbox.io;
requires org.apache.fontbox;
requires org.bouncycastle.provider;
requires org.bouncycastle.util;
requires org.bouncycastle.pkix;

exports org.apache.pdfbox;
exports org.apache.pdfbox.contentstream;
exports org.apache.pdfbox.contentstream.operator;
exports org.apache.pdfbox.contentstream.operator.color;
exports org.apache.pdfbox.contentstream.operator.graphics;
exports org.apache.pdfbox.contentstream.operator.markedcontent;
exports org.apache.pdfbox.contentstream.operator.state;
exports org.apache.pdfbox.contentstream.operator.text;
exports org.apache.pdfbox.cos;
exports org.apache.pdfbox.filter;
exports org.apache.pdfbox.multipdf;
exports org.apache.pdfbox.pdfparser;
exports org.apache.pdfbox.pdfparser.xref;
exports org.apache.pdfbox.pdfwriter;
exports org.apache.pdfbox.pdfwriter.compress;
exports org.apache.pdfbox.pdmodel;
exports org.apache.pdfbox.pdmodel.common;
exports org.apache.pdfbox.pdmodel.common.filespecification;
exports org.apache.pdfbox.pdmodel.common.function;
exports org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure;
exports org.apache.pdfbox.pdmodel.documentinterchange.markedcontent;
exports org.apache.pdfbox.pdmodel.documentinterchange.prepress;
exports org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf;
exports org.apache.pdfbox.pdmodel.encryption;
exports org.apache.pdfbox.pdmodel.fdf;
exports org.apache.pdfbox.pdmodel.fixup;
exports org.apache.pdfbox.pdmodel.fixup.processor;
exports org.apache.pdfbox.pdmodel.font;
exports org.apache.pdfbox.pdmodel.font.encoding;
exports org.apache.pdfbox.pdmodel.graphics;
exports org.apache.pdfbox.pdmodel.graphics.blend;
exports org.apache.pdfbox.pdmodel.graphics.color;
exports org.apache.pdfbox.pdmodel.graphics.form;
exports org.apache.pdfbox.pdmodel.graphics.image;
exports org.apache.pdfbox.pdmodel.graphics.optionalcontent;
exports org.apache.pdfbox.pdmodel.graphics.pattern;
exports org.apache.pdfbox.pdmodel.graphics.shading;
exports org.apache.pdfbox.pdmodel.graphics.state;
exports org.apache.pdfbox.pdmodel.interactive;
exports org.apache.pdfbox.pdmodel.interactive.action;
exports org.apache.pdfbox.pdmodel.interactive.annotation;
exports org.apache.pdfbox.pdmodel.interactive.annotation.handlers;
exports org.apache.pdfbox.pdmodel.interactive.digitalsignature;
exports org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible;
exports org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination;
exports org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline;
exports org.apache.pdfbox.pdmodel.interactive.form;
exports org.apache.pdfbox.pdmodel.interactive.measurement;
exports org.apache.pdfbox.pdmodel.interactive.pagenavigation;
exports org.apache.pdfbox.pdmodel.interactive.viewerpreferences;
exports org.apache.pdfbox.printing;
exports org.apache.pdfbox.rendering;
exports org.apache.pdfbox.text;
exports org.apache.pdfbox.util;
exports org.apache.pdfbox.util.filetypedetector;
}
11 changes: 0 additions & 11 deletions tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,6 @@
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>org.apache.pdfbox.tools</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
13 changes: 13 additions & 0 deletions tools/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module org.apache.pdfbox.tools {
requires java.desktop;
requires org.apache.logging.log4j;
requires info.picocli;
requires org.apache.commons.io;
requires org.apache.pdfbox.io;
requires org.apache.pdfbox;
requires org.apache.pdfbox.debugger;
requires org.apache.fontbox;

exports org.apache.pdfbox.tools;
exports org.apache.pdfbox.tools.imageio;
}
5 changes: 0 additions & 5 deletions xmpbox/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Automatic-Module-Name>org.apache.xmpbox</Automatic-Module-Name>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
8 changes: 8 additions & 0 deletions xmpbox/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module org.apache.xmpbox {
requires java.xml;

exports org.apache.xmpbox;
exports org.apache.xmpbox.schema;
exports org.apache.xmpbox.type;
exports org.apache.xmpbox.xml;
}