You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ta...@apache.org on 2019/12/19 13:16:38 UTC

svn commit: r1871823 - /pdfbox/branches/2.0/parent/pom.xml

Author: tallison
Date: Thu Dec 19 13:16:38 2019
New Revision: 1871823

URL: http://svn.apache.org/viewvc?rev=1871823&view=rev
Log:
PDFBOX-4715 -- specify release version for builds with Java >= 9 -- fail a build for Java > 11

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

Modified: pdfbox/branches/2.0/parent/pom.xml
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/parent/pom.xml?rev=1871823&r1=1871822&r2=1871823&view=diff
==============================================================================
--- pdfbox/branches/2.0/parent/pom.xml (original)
+++ pdfbox/branches/2.0/parent/pom.xml Thu Dec 19 13:16:38 2019
@@ -136,7 +136,7 @@
             </properties>
         </profile>
         <!-- 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 -->
+             a version after Java 8, it can still be run with e.g. Java 6; PDFBOX-4715 -->
         <profile>
             <id>jdkGte9</id>
             <activation>
@@ -326,7 +326,13 @@
                                     <requireMavenVersion>
                                         <version>3.1</version>
                                     </requireMavenVersion>
-                                </rules>    
+                                    <requireJavaVersion>
+                                        <version>[1.7,12)</version>
+                                        <message>Requires at least Java 7, and
+                                            Java versions higher than 11 cannot
+                                            build Java 6 bytecode</message>
+                                    </requireJavaVersion>
+                                  </rules>
                             </configuration>
                         </execution>
                     </executions>