Author: tallison
Date: Tue Dec 17 21:55:44 2019
New Revision: 1871710

URL: http://svn.apache.org/viewvc?rev=1871710&view=rev
Log:
PDFBOX-4715 -- need to add release version for maven-compiler-plugin

Modified:
    pdfbox/branches/issue4569/parent/pom.xml

Modified: pdfbox/branches/issue4569/parent/pom.xml
URL: 
http://svn.apache.org/viewvc/pdfbox/branches/issue4569/parent/pom.xml?rev=1871710&r1=1871709&r2=1871710&view=diff
==============================================================================
--- pdfbox/branches/issue4569/parent/pom.xml (original)
+++ pdfbox/branches/issue4569/parent/pom.xml Tue Dec 17 21:55:44 2019
@@ -113,6 +113,24 @@
     </dependencyManagement>
 
     <profiles>
+        <!-- need to specify release version so that if PDFBox is built with
+        &gt; Java 8, it can still be run with e.g. Java 6; PDFBOX-4715 -->
+        <profile>
+            <id>jdkGte9</id>
+            <activation>
+                <jdk>[1.9,)</jdk>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-compiler-plugin</artifactId>
+                        <configuration>
+                            <release>8</release>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
         <!-- call mvn with -Pjdk9 or call with -Daddmod="...." -->
         <profile>
             <id>jdk9</id>


Reply via email to