]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP-3132: Link against Java 8 API
authorSimon Steiner <ssteiner@apache.org>
Thu, 4 May 2023 12:24:15 +0000 (13:24 +0100)
committerSimon Steiner <ssteiner@apache.org>
Thu, 4 May 2023 12:24:15 +0000 (13:24 +0100)
pom.xml

diff --git a/pom.xml b/pom.xml
index fa2f14aaea1ec2696fa449e9bfa57d5164bef168..78bbab6e20fd452877e74a933368cc2ac8be54e9 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <checkstyle.plugin.version>2.14</checkstyle.plugin.version>
     <commons.io.version>2.11.0</commons.io.version>
     <commons.logging.version>1.0.4</commons.logging.version>
-    <compiler.plugin.version>3.1</compiler.plugin.version>
+    <compiler.plugin.version>3.11.0</compiler.plugin.version>
     <exec.plugin.version>1.4.0</exec.plugin.version>
     <findbugs.plugin.version>3.0.4</findbugs.plugin.version>
     <jar.plugin.version>3.1.1</jar.plugin.version>
-    <java.version>1.8</java.version>
+    <java.version>8</java.version>
     <junit.version>4.11</junit.version>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <project.info.reports.plugin.version>2.8</project.info.reports.plugin.version>
         </pluginManagement>
       </build>
     </profile>
+    <profile>
+      <id>java-8-api</id>
+      <activation>
+        <jdk>[9,)</jdk>
+      </activation>
+      <properties>
+        <maven.compiler.release>${java.version}</maven.compiler.release>
+      </properties>
+    </profile>
   </profiles>
 
   <scm>