Author: tallison
Date: Tue Dec 17 21:57:51 2019
New Revision: 1871711
URL: http://svn.apache.org/viewvc?rev=1871711&view=rev
Log:
PDFBOX-4715 -- need to add release version for maven-compiler-plugin
Modified:
pdfbox/branches/issue45/parent/pom.xml
Modified: pdfbox/branches/issue45/parent/pom.xml
URL:
http://svn.apache.org/viewvc/pdfbox/branches/issue45/parent/pom.xml?rev=1871711&r1=1871710&r2=1871711&view=diff
==============================================================================
--- pdfbox/branches/issue45/parent/pom.xml (original)
+++ pdfbox/branches/issue45/parent/pom.xml Tue Dec 17 21:57:51 2019
@@ -135,6 +135,24 @@
<addmod>--add-modules java.activation --add-modules
java.xml.bind</addmod>
</properties>
</profile>
+ <!-- need to specify release version so that if PDFBox is built with
+ > 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>6</release>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<profile>
<!-- from jdk11 onwards activation and bind are no longer part of
the jdk -->
<!-- must be set to "test" or "provided" in subprojects -->