Skip to content

Commit

Permalink
Require Java 17 for OpenPDF 1.4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasrosdal committed Feb 14, 2024
1 parent c6725d6 commit 5d86f68
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ jobs:
strategy:
matrix:
# The last 3 LTS releases
# Java 8 is supported until May 2026
# Java 11 is run in codacy-coverage-reporter
java: [ 17, 21 ]
# Java 17 is run in codacy-coverage-reporter
java: [ 21 ]
name: Java ${{matrix.java}}
steps:
- uses: actions/checkout@v4.1.1
Expand All @@ -33,14 +32,14 @@ jobs:

codacy-coverage-reporter:
runs-on: ubuntu-latest
name: codacy-coverage-reporter
name: Java 17 and codacy-coverage-reporter
steps:
- uses: actions/checkout@v4.1.1
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
java-version: 17
- name: Build with Maven
run: mvn -B verify --file pom.xml -Dgpg.skip
- name: Run codacy-coverage-reporter
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ only contain code that you have written yourself. GPL or AGPL licensed code will

### Required Dependencies: ###

- 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+.
- 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.
- Java 17 or later is required to use OpenPDF versions 1.4.0 (not released yet). We are working on modernizing the OpenPDF library for Java 17+.


### UTF-8 Fonts: ###
Expand Down
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

<properties>
<java-module-name>com.github.librepdf.openpdf.parent</java-module-name>
<java.version>11</java.version>
<java.version>17</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

Expand Down Expand Up @@ -420,9 +420,9 @@

<profiles>
<profile>
<id>jdk11-plus</id>
<id>jdk17-plus</id>
<activation>
<jdk>[11,)</jdk>
<jdk>[17,)</jdk>
</activation>
<dependencyManagement>
<dependencies>
Expand All @@ -440,16 +440,16 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
<configuration>
<release>11</release>
<release>17</release>
</configuration>
<executions>
<execution>
<id>compile-java-11</id>
<id>compile-java-17</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<release>11</release>
<release>17</release>
<compileSourceRoots>
<compileSourceRoot>${project.basedir}/src/main/java</compileSourceRoot>
</compileSourceRoots>
Expand Down

0 comments on commit 5d86f68

Please sign in to comment.