You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2018/10/20 10:58:19 UTC
svn commit: r1844410 - in /pdfbox/branches/2.0: examples/pom.xml
parent/pom.xml preflight/pom.xml xmpbox/pom.xml
Author: tilman
Date: Sat Oct 20 10:58:19 2018
New Revision: 1844410
URL: http://svn.apache.org/viewvc?rev=1844410&view=rev
Log:
PDFBOX-4163: add support for jdk11
Modified:
pdfbox/branches/2.0/examples/pom.xml
pdfbox/branches/2.0/parent/pom.xml
pdfbox/branches/2.0/preflight/pom.xml
pdfbox/branches/2.0/xmpbox/pom.xml
Modified: pdfbox/branches/2.0/examples/pom.xml
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/pom.xml?rev=1844410&r1=1844409&r2=1844410&view=diff
==============================================================================
--- pdfbox/branches/2.0/examples/pom.xml (original)
+++ pdfbox/branches/2.0/examples/pom.xml Sat Oct 20 10:58:19 2018
@@ -42,6 +42,26 @@
<!-- don't update this, because later versions require JDK7 -->
</properties>
+ <profiles>
+ <profile>
+ <activation>
+ <jdk>[11,)</jdk>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.activation</groupId>
+ <artifactId>activation</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+
<dependencies>
<dependency>
<groupId>org.bouncycastle</groupId>
Modified: pdfbox/branches/2.0/parent/pom.xml
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/parent/pom.xml?rev=1844410&r1=1844409&r2=1844410&view=diff
==============================================================================
--- pdfbox/branches/2.0/parent/pom.xml (original)
+++ pdfbox/branches/2.0/parent/pom.xml Sat Oct 20 10:58:19 2018
@@ -124,18 +124,40 @@
<profile>
<id>jdk9</id>
<!--
- allows automatic activation when jdk9 or higher is used
+ allows automatic activation when jdk9 or jdk10 are used
https://maven.apache.org/guides/introduction/introduction-to-profiles.html
https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html
-->
<activation>
- <jdk>[9,)</jdk>
+ <jdk>[9,10]</jdk>
</activation>
<properties>
<addmod>--add-modules java.activation --add-modules java.xml.bind</addmod>
</properties>
</profile>
<profile>
+ <!-- from jdk11 onwards activation and bind are no longer part of the jdk -->
+ <!-- must be set to "test" or "provided" in subprojects -->
+ <id>jdk11</id>
+ <activation>
+ <jdk>[11,)</jdk>
+ </activation>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>2.3.1</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.activation</groupId>
+ <artifactId>activation</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+ </profile>
+ <profile>
<id>pedantic</id>
<build>
<plugins>
Modified: pdfbox/branches/2.0/preflight/pom.xml
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/preflight/pom.xml?rev=1844410&r1=1844409&r2=1844410&view=diff
==============================================================================
--- pdfbox/branches/2.0/preflight/pom.xml (original)
+++ pdfbox/branches/2.0/preflight/pom.xml Sat Oct 20 10:58:19 2018
@@ -35,6 +35,26 @@
<skip-bavaria>true</skip-bavaria>
</properties>
+ <profiles>
+ <profile>
+ <activation>
+ <jdk>[11,)</jdk>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.activation</groupId>
+ <artifactId>activation</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+
<build>
<plugins>
<plugin>
Modified: pdfbox/branches/2.0/xmpbox/pom.xml
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/xmpbox/pom.xml?rev=1844410&r1=1844409&r2=1844410&view=diff
==============================================================================
--- pdfbox/branches/2.0/xmpbox/pom.xml (original)
+++ pdfbox/branches/2.0/xmpbox/pom.xml Sat Oct 20 10:58:19 2018
@@ -31,6 +31,20 @@
<relativePath>../parent/pom.xml</relativePath>
</parent>
+ <profiles>
+ <profile>
+ <activation>
+ <jdk>[11,)</jdk>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
<dependencies>
<dependency>