Trisquel 9 has two java versions: Java 8 and Java 11.

Java 8 doesn't support building for Java 1.5 / Java5 anymore[1], so
we need to bump the Java version to at least Java 1.6 for it to build.

And without that fix we have many compilation errors like this one,
on each components that are built against Java 1.5 / Java 5:
(modified to fit the 70 characters limit):
    [ERROR] COMPILATION ERROR :
    [INFO] -----------------------------------------------------------
    [ERROR] Source option 5 is no longer supported. Use 6 or later.
    [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
    [INFO] 2 errors
    [INFO] -----------------------------------------------------------
    [INFO] -----------------------------------------------------------
    [INFO] Reactor Summary for Simple 6.0.1:
    [INFO]
    [INFO] Simple Common ..........................FAILURE [  1.443 s]
    [INFO] Simple Transport ...................................SKIPPED
    [INFO] Simple HTTP ........................................SKIPPED
    [INFO] Simple .............................................SKIPPED
    [INFO] -----------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] -----------------------------------------------------------
    [INFO] Total time:  1.873 s
    [INFO] Finished at: 2021-07-19T01:28:41+02:00
    [INFO] -----------------------------------------------------------
    [ERROR] Failed to execute goal
            org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
            (default-compile) on project simple-common: Compilation
            failure: Compilation failure:
    [ERROR] Source option 5 is no longer supported. Use 6 or later.
    [ERROR] Target option 1.5 is no longer supported. Use 1.6 or
            later.
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven
            with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug
            logging.
    [ERROR]
    [ERROR] For more information about the errors and possible
            solutions, please read the following articles:
    [ERROR] [Help 1]
    http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

References:
-----------
[1]https://openjdk.java.net/jeps/182

Signed-off-by: Denis 'GNUtoo' Carikli <gnu...@cyberdimension.org>
---
 antlr-runtime/antlr-3.4/gunit-maven-plugin/pom.xml | 2 +-
 antlr-runtime/antlr-3.4/gunit/pom.xml              | 2 +-
 guava/build.xml                                    | 4 ++--
 guava/pom.xml                                      | 4 ++--
 jsr305/pom.xml                                     | 4 ++--
 jsr305/ri/build.xml                                | 2 +-
 jsr305/ri/nbproject/project.xml                    | 2 +-
 junit4/build.xml                                   | 2 +-
 junit4/build/maven/pom-template.xml                | 2 +-
 junit4/build/maven/sample_project_template/pom.xml | 4 ++--
 simple/simple-common/pom.xml                       | 4 ++--
 simple/simple-http/pom.xml                         | 4 ++--
 simple/simple-transport/pom.xml                    | 4 ++--
 13 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/antlr-runtime/antlr-3.4/gunit-maven-plugin/pom.xml 
b/antlr-runtime/antlr-3.4/gunit-maven-plugin/pom.xml
index 3cceb8b7b..46a2586b7 100644
--- a/antlr-runtime/antlr-3.4/gunit-maven-plugin/pom.xml
+++ b/antlr-runtime/antlr-3.4/gunit-maven-plugin/pom.xml
@@ -224,7 +224,7 @@
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.0.2</version>
                 <configuration>
-                    <source>1.5</source>
+                    <source>1.6</source>
                     <target>jsr14</target>
                 </configuration>
             </plugin>
diff --git a/antlr-runtime/antlr-3.4/gunit/pom.xml 
b/antlr-runtime/antlr-3.4/gunit/pom.xml
index 4fd6e9b97..d8cfe6953 100644
--- a/antlr-runtime/antlr-3.4/gunit/pom.xml
+++ b/antlr-runtime/antlr-3.4/gunit/pom.xml
@@ -132,7 +132,7 @@
             <plugin>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <configuration>
-                    <source>1.5</source>
+                    <source>1.6</source>
                     <target>jsr14</target>
                     <sourceDirectory>src</sourceDirectory>
                 </configuration>
diff --git a/guava/build.xml b/guava/build.xml
index e6a73cbf9..1457fd8c1 100644
--- a/guava/build.xml
+++ b/guava/build.xml
@@ -35,8 +35,8 @@
     <javac srcdir="src"
          debug="on"
          destdir="build/classes"
-         source="1.5"
-         target="1.5"
+         source="1.6"
+         target="1.6"
          bootclasspath="${java5bootclasspath}"
          extdirs="">
       <compilerarg value="-Xlint:all"/>
diff --git a/guava/pom.xml b/guava/pom.xml
index 89da71d08..7901e3241 100644
--- a/guava/pom.xml
+++ b/guava/pom.xml
@@ -79,8 +79,8 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
+          <source>1.6</source>
+          <target>1.6</target>
         </configuration>
       </plugin>
     </plugins>
diff --git a/jsr305/pom.xml b/jsr305/pom.xml
index dcafc073b..26407b8e5 100644
--- a/jsr305/pom.xml
+++ b/jsr305/pom.xml
@@ -27,8 +27,8 @@
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <configuration>
-                                       <source>1.5</source>
-                                       <target>1.5</target>
+                                       <source>1.6</source>
+                                       <target>1.6</target>
                                </configuration>
                        </plugin>
                </plugins>
diff --git a/jsr305/ri/build.xml b/jsr305/ri/build.xml
index ad07dec03..d7d264d2c 100644
--- a/jsr305/ri/build.xml
+++ b/jsr305/ri/build.xml
@@ -5,7 +5,7 @@
        <target name="build" depends="clean,classes,jars"/>
        <target name="classes">
                <mkdir dir="build/classes"/>
-               <javac  destdir="build/classes" source="1.5" target="1.5" 
debug="on">
+               <javac  destdir="build/classes" source="1.6" target="1.6" 
debug="on">
                        <src path="src/main/java"/>
                        <classpath>
                                <pathelement location="build/classes"/>
diff --git a/jsr305/ri/nbproject/project.xml b/jsr305/ri/nbproject/project.xml
index e4a7852b7..826335427 100644
--- a/jsr305/ri/nbproject/project.xml
+++ b/jsr305/ri/nbproject/project.xml
@@ -71,7 +71,7 @@
                 <package-root>src/main/java</package-root>
                 <package-root>src/main/resources</package-root>
                 <built-to>build</built-to>
-                <source-level>1.5</source-level>
+                <source-level>1.6</source-level>
             </compilation-unit>
         </java-data>
     </configuration>
diff --git a/junit4/build.xml b/junit4/build.xml
index 8f69e914a..0ef50ef24 100644
--- a/junit4/build.xml
+++ b/junit4/build.xml
@@ -68,7 +68,7 @@
           debug="on"
           classpath="@{classpath}"
           includeantruntime="false"
-          target="1.5"
+          target="1.6"
           >
         <compilerarg value="-Xlint:unchecked" />
       </javac>
diff --git a/junit4/build/maven/pom-template.xml 
b/junit4/build/maven/pom-template.xml
index 0f8ed50cd..c08514665 100644
--- a/junit4/build/maven/pom-template.xml
+++ b/junit4/build/maven/pom-template.xml
@@ -64,6 +64,6 @@
     </dependencies>
 
     <properties>
-         <jdk.version>1.5</jdk.version>
+         <jdk.version>1.6</jdk.version>
     </properties>
 </project>
\ No newline at end of file
diff --git a/junit4/build/maven/sample_project_template/pom.xml 
b/junit4/build/maven/sample_project_template/pom.xml
index 5d8c6f7be..37ca75d59 100644
--- a/junit4/build/maven/sample_project_template/pom.xml
+++ b/junit4/build/maven/sample_project_template/pom.xml
@@ -52,8 +52,8 @@
       <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
+          <source>1.6</source>
+          <target>1.6</target>
         </configuration>
       </plugin>
     </plugins>
diff --git a/simple/simple-common/pom.xml b/simple/simple-common/pom.xml
index ce5a5767b..055f8b2c0 100644
--- a/simple/simple-common/pom.xml
+++ b/simple/simple-common/pom.xml
@@ -60,8 +60,8 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
+          <source>1.6</source>
+          <target>1.6</target>
         </configuration>
       </plugin>
       <plugin>
diff --git a/simple/simple-http/pom.xml b/simple/simple-http/pom.xml
index 0146ceadb..ddc28a56d 100644
--- a/simple/simple-http/pom.xml
+++ b/simple/simple-http/pom.xml
@@ -70,8 +70,8 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
+          <source>1.6</source>
+          <target>1.6</target>
         </configuration>
       </plugin>
       <plugin>
diff --git a/simple/simple-transport/pom.xml b/simple/simple-transport/pom.xml
index 60612745e..049bf69d0 100644
--- a/simple/simple-transport/pom.xml
+++ b/simple/simple-transport/pom.xml
@@ -65,8 +65,8 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
+          <source>1.6</source>
+          <target>1.6</target>
         </configuration>
       </plugin>
       <plugin>
-- 
2.32.0

_______________________________________________
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to