Files
jfreepdf/jfreepdf-2.0-java8compat.patch

36 lines
1.5 KiB
Diff

--- jfreepdf-2.0/pom.xml 2022-05-17 01:27:50.328050850 +0200
+++ jfreepdf-2.0/pom.xml 2022-05-17 01:35:33.886489467 +0200
@@ -57,9 +57,30 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
+ <executions>
+ <execution>
+ <id>default-compile</id>
+ <configuration>
+ <jdkToolchain>
+ <version>9</version>
+ </jdkToolchain>
+ <release>9</release>
+ </configuration>
+ </execution>
+ <execution>
+ <id>base-compile</id>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ <configuration>
+ <excludes>
+ <exclude>module-info.java</exclude>
+ </excludes>
+ </configuration>
+ </execution>
+ </executions>
<configuration>
- <source>11</source>
- <target>11</target>
+ <release>8</release>
<compilerArgument>-Xlint:unchecked</compilerArgument>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>