You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@amoro.apache.org by xu...@apache.org on 2025/04/25 07:36:18 UTC

(amoro) branch deprecate-java8 created (now 0626c95c1)

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

xuba pushed a change to branch deprecate-java8
in repository https://gitbox.apache.org/repos/asf/amoro.git


      at 0626c95c1 Update: migrate project to JDK 11

This branch includes the following new commits:

     new 0626c95c1 Update: migrate project to JDK 11

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(amoro) 01/01: Update: migrate project to JDK 11

Posted by xu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xuba pushed a commit to branch deprecate-java8
in repository https://gitbox.apache.org/repos/asf/amoro.git

commit 0626c95c1a5bd9a338426b19fcaf9bdbe5af7a75
Author: xuba <xu...@cisco.com>
AuthorDate: Fri Apr 25 15:36:05 2025 +0800

    Update: migrate project to JDK 11
---
 README.md               |  2 +-
 docker/amoro/Dockerfile | 10 +++++-----
 pom.xml                 |  7 ++++---
 3 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/README.md b/README.md
index a56eefce4..70e3b2b3c 100644
--- a/README.md
+++ b/README.md
@@ -113,7 +113,7 @@ Amoro contains modules as below:
 
 ## Building
 
-Amoro is built using Maven with JDK 8 and JDK 17(only for `amoro-format-mixed/amoro-mixed-trino` module).
+Amoro is built using Maven with JDK 11 and JDK 17(only for `amoro-format-mixed/amoro-mixed-trino` module).
 
 * Build all modules without `amoro-mixed-trino`: `mvn clean package`
 * Build and skip tests: `mvn clean package -DskipTests`
diff --git a/docker/amoro/Dockerfile b/docker/amoro/Dockerfile
index 71de9fdd3..2d54a4d64 100644
--- a/docker/amoro/Dockerfile
+++ b/docker/amoro/Dockerfile
@@ -23,7 +23,7 @@
 #        --tag apache/amoro:tagname
 #        .
 
-FROM eclipse-temurin:8-jdk-jammy as builder
+FROM eclipse-temurin:11-jdk-jammy AS builder
 
 # Add the entire project to the build container, unzip it,
 # and remove flink-optimizer to reduce the container size.
@@ -40,13 +40,13 @@ RUN AMORO_VERSION=`cat pom.xml | grep 'amoro-parent' -C 3 | grep -Eo '<version>.
     && rm -rf /workspace/amoro
 
 
-FROM eclipse-temurin:8-jdk-jammy
+FROM eclipse-temurin:11-jdk-jammy
 
 ARG MAVEN_MIRROR=https://repo.maven.apache.org/maven2
 
-ENV AMORO_HOME /usr/local/amoro
-ENV AMORO_CONF_DIR ${AMORO_HOME}/conf
-ENV LOG_LEVEL info
+ENV AMORO_HOME=/usr/local/amoro
+ENV AMORO_CONF_DIR=${AMORO_HOME}/conf
+ENV LOG_LEVEL=info
 EXPOSE 1630 1260 1261
 
 COPY ./docker/amoro/entrypoint.sh /
diff --git a/pom.xml b/pom.xml
index 2588ce409..554c327f0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,12 +71,13 @@
     </issueManagement>
 
     <properties>
-        <maven.compiler.source>8</maven.compiler.source>
-        <maven.compiler.target>8</maven.compiler.target>
+        <maven.compiler.source>11</maven.compiler.source>
+        <maven.compiler.target>11</maven.compiler.target>
+        <maven.compiler.release>8</maven.compiler.release>
 
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <project.build.outputTimestamp>2024-06-27T08:00:00Z</project.build.outputTimestamp>
-        <java.version>1.8</java.version>
+        <java.version>11</java.version>
         <root.dir>${project.basedir}</root.dir>
         <jacoco.flink.skip>false</jacoco.flink.skip>