You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2021/01/08 21:30:36 UTC

[jena] branch master updated: JENA-2022: Build for Java11

This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jena.git


The following commit(s) were added to refs/heads/master by this push:
     new 55aa735  JENA-2022: Build for Java11
     new 5b04da0  Merge pull request #898 from afs/jena2022-java11
55aa735 is described below

commit 55aa735ac667b96d2a841acda44cac6b05ad58eb
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Thu Jan 7 13:48:00 2021 +0000

    JENA-2022: Build for Java11
---
 .travis.yml |  3 +--
 pom.xml     | 31 +++++++++++++++++++++++--------
 2 files changed, 24 insertions(+), 10 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index da3db5e..ba78b0f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,9 +1,8 @@
 language: java
 os: linux
 install: true
-script: mvn -B clean install
+script: mvn -B clean install -Dmaven.javadoc.skip=true
 jdk:
-  - openjdk8
   - openjdk11
 env:
   - JAVA_OPTS="-Xmx3072M -Xms512M"
diff --git a/pom.xml b/pom.xml
index 5ab8f81..0c916df 100644
--- a/pom.xml
+++ b/pom.xml
@@ -104,8 +104,7 @@
 
     <ver.graalvm>20.3.0</ver.graalvm>
 
-    <jdk.version>1.8</jdk.version>
-    <targetJdk>${jdk.version}</targetJdk>
+    <java.version>11</java.version>
 
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ssZ</maven.build.timestamp.format>
@@ -799,12 +798,10 @@
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
           <version>3.8.1</version>
-          <!--
           <configuration>
-            <release>11</release>
+            <release>${java.version}</release>
           </configuration>
-          -->
-          <!-- Java8 compiler for Java8 output -->
+          <!-- Java8 compiler for Java8 output
           <configuration>
             <showDeprecation>false</showDeprecation>
             <encoding>UTF-8</encoding>
@@ -814,6 +811,7 @@
             <source>${jdk.version}</source>
             <target>${jdk.version}</target>
           </configuration>
+          -->
         </plugin>
 
         <plugin>
@@ -862,16 +860,33 @@
             </execution>
           </executions>
           <configuration>
-            <!-- Java 11: explicitly define the source as Java8 -->
-            <source>8</source>
+            <!--
+                 https://bugs.openjdk.java.net/browse/JDK-8212233
+            -->
+            
+            <!-- Java 11: JDK-8212233
+                 Fixed in 12.0.1, 11.0.3
+
+                 Explicitly define the source as Java8 when building
+                 with java8 source code for java8 output.
+                 Not good enough when compiling for Java11 output.
+                 <source>8</source>
+
+                 https://bugs.openjdk.java.net/browse/JDK-8212233
+                     which affects early Java11 and Java12
+                 https://issues.apache.org/jira/browse/MJAVADOC-555
+            -->
+            
             <!-- Java 10
                  <additionalOptions>-html5</additionalOptions>
             -->
             <quiet>true</quiet>
             <doclint>none</doclint>
+
             <!-- To allow the build to keep going despite javadoc problems:
                  <failOnError>false</failOnError>
             -->
+
             <version>true</version>
             <show>public</show>
             <encoding>UTF-8</encoding>