diff --git a/README.md b/README.md index 88903213a..732189b90 100644 --- a/README.md +++ b/README.md @@ -103,8 +103,9 @@ only contain code that you have written yourself. GPL or AGPL licensed code will ### Required Dependencies: ### -- Java 9 or later is required to use OpenPDF. All versions Java 9 to Java OpenJDK 15 have been - tested to work. +- Java 9 or later is required to use OpenPDF versions up to 1.3.36. We will consider the need for more Java 9+ compatible maintenance releases. +- Java 11 or later is required to use OpenPDF versions 1.3.37 and later. All versions Java 11 to Java OpenJDK 21 have been tested to work. We are working on modernizing the OpenPDF library for Java 11+. + ### UTF-8 Fonts: ### diff --git a/openpdf-fonts-extra/src/main/java9/module-info.java b/openpdf-fonts-extra/src/main/java/module-info.java similarity index 100% rename from openpdf-fonts-extra/src/main/java9/module-info.java rename to openpdf-fonts-extra/src/main/java/module-info.java diff --git a/openpdf/src/main/java9/module-info.java b/openpdf/src/main/java/module-info.java similarity index 93% rename from openpdf/src/main/java9/module-info.java rename to openpdf/src/main/java/module-info.java index 454a2db01..8595cb22c 100644 --- a/openpdf/src/main/java9/module-info.java +++ b/openpdf/src/main/java/module-info.java @@ -3,8 +3,10 @@ requires static org.bouncycastle.provider; requires static fop; requires static java.desktop; + requires fop.core; + requires com.ibm.icu; - exports com.lowagie.bouncycastle; + exports com.lowagie.bouncycastle; exports com.lowagie.text; exports com.lowagie.text.alignment; exports com.lowagie.text.error_messages; diff --git a/pdf-swing/src/main/java9/module-info.java b/pdf-swing/src/main/java/module-info.java similarity index 90% rename from pdf-swing/src/main/java9/module-info.java rename to pdf-swing/src/main/java/module-info.java index 57a202225..aaf210d40 100644 --- a/pdf-swing/src/main/java9/module-info.java +++ b/pdf-swing/src/main/java/module-info.java @@ -2,8 +2,9 @@ requires com.github.librepdf.openpdf; requires org.dom4j; requires pdf.renderer; + requires java.desktop; - exports com.lowagie.rups; + exports com.lowagie.rups; exports com.lowagie.rups.controller; exports com.lowagie.rups.io; exports com.lowagie.rups.io.filters; diff --git a/pdf-toolbox/src/main/java9/module-info.java b/pdf-toolbox/src/main/java/module-info.java similarity index 88% rename from pdf-toolbox/src/main/java9/module-info.java rename to pdf-toolbox/src/main/java/module-info.java index 88caf17c6..6aaf765ba 100644 --- a/pdf-toolbox/src/main/java9/module-info.java +++ b/pdf-toolbox/src/main/java/module-info.java @@ -2,8 +2,9 @@ requires com.github.librepdf.openpdf; requires org.jfree.jfreechart; requires jcommon; + requires java.desktop; - exports com.lowagie.toolbox; + exports com.lowagie.toolbox; exports com.lowagie.toolbox.arguments; exports com.lowagie.toolbox.arguments.filters; exports com.lowagie.toolbox.plugins; diff --git a/pdf-toolbox/src/test/java/com/lowagie/text/SwingExamplesTest.java b/pdf-toolbox/src/test/java/com/lowagie/text/SwingExamplesTest.java deleted file mode 100644 index cd7126de3..000000000 --- a/pdf-toolbox/src/test/java/com/lowagie/text/SwingExamplesTest.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.lowagie.text; - -import static org.junit.jupiter.api.Assertions.fail; - -import com.lowagie.examples.objects.tables.alternatives.JTable2Pdf; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -@Disabled //ignored until we can fix headless GUI on Travis CI. -class SwingExamplesTest { - - static void main(String[] args) { - SwingExamplesTest r = new SwingExamplesTest(); - r.testJTable2Pdf(); - } - - void runSingleTest(String... args) { - try { - JTable2Pdf.main(args); - } catch (Exception e) { - fail("Test " + JTable2Pdf.class.getName() + " failed: " + e.getCause()); - } - } - - @Test - void testJTable2Pdf() { - runSingleTest(); - } - -} diff --git a/pom.xml b/pom.xml index dc491692d..ddd38e00f 100644 --- a/pom.xml +++ b/pom.xml @@ -54,7 +54,7 @@ com.github.librepdf.openpdf.parent - 9 + 11 UTF-8 UTF-8 @@ -406,24 +406,9 @@ - jdk8 + jdk11-plus - (,8] - - - - - org.mockito - mockito-core - ${mockito4.version} - - - - - - jdk9-plus - - [9,) + [11,) @@ -441,18 +426,18 @@ maven-compiler-plugin ${maven.compiler.plugin.version} - 8 + 11 - compile-java-9 + compile-java-11 compile - 9 + 11 - ${project.basedir}/src/main/java9 + ${project.basedir}/src/main/java true