summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-07-19 01:10:50 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-08-10 14:45:27 +0200
commit200b4b0d9c782fe1a0930f3384f675bed06d6c09 (patch)
tree4db7ee8540c09d8d0eee80b6d89faace1d08cfd3
parent476637ac146a154903bd8eac67e20467ebcff91a (diff)
downloadtoolchain_jack-200b4b0d9c782fe1a0930f3384f675bed06d6c09.tar.gz
toolchain_jack-200b4b0d9c782fe1a0930f3384f675bed06d6c09.tar.bz2
toolchain_jack-200b4b0d9c782fe1a0930f3384f675bed06d6c09.zip
Bump Java version to fix the build under Trisquel 9
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 <GNUtoo@cyberdimension.org>
-rw-r--r--antlr-runtime/antlr-3.4/gunit-maven-plugin/pom.xml2
-rw-r--r--antlr-runtime/antlr-3.4/gunit/pom.xml2
-rw-r--r--guava/build.xml4
-rw-r--r--guava/pom.xml4
-rw-r--r--jsr305/pom.xml4
-rw-r--r--jsr305/ri/build.xml2
-rw-r--r--jsr305/ri/nbproject/project.xml2
-rw-r--r--junit4/build.xml2
-rw-r--r--junit4/build/maven/pom-template.xml2
-rw-r--r--junit4/build/maven/sample_project_template/pom.xml4
-rw-r--r--simple/simple-common/pom.xml4
-rw-r--r--simple/simple-http/pom.xml4
-rw-r--r--simple/simple-transport/pom.xml4
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 3cceb8b7..46a2586b 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 4fd6e9b9..d8cfe695 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 e6a73cbf..1457fd8c 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 89da71d0..7901e324 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 dcafc073..26407b8e 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 ad07dec0..d7d264d2 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 e4a7852b..82633542 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 8f69e914..0ef50ef2 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 0f8ed50c..c0851466 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 5d8c6f7b..37ca75d5 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 ce5a5767..055f8b2c 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 0146cead..ddc28a56 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 60612745..049bf69d 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>