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

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


The following commit(s) were added to refs/heads/master by this push:
     new 9232d5ae54 Configuring gitpod with java (#5957)
9232d5ae54 is described below

commit 9232d5ae542f8cb96d238e621b879069c6f16661
Author: Kerwin Bryant <kerwin...@qq.com>
AuthorDate: Sat Mar 15 22:17:17 2025 +0800

    Configuring gitpod with java (#5957)
    
    * Configuring gitpod with java
    
    * fix lint error
    
    ---------
    
    Co-authored-by: aias00 <liuhon...@apache.org>
---
 .gitpod.Dockerfile | 7 +++++++
 .gitpod.yml        | 5 +++--
 .licenserc.yaml    | 1 +
 pom.xml            | 1 +
 4 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile
new file mode 100644
index 0000000000..3c1edd3c60
--- /dev/null
+++ b/.gitpod.Dockerfile
@@ -0,0 +1,7 @@
+FROM gitpod/workspace-full
+
+USER gitpod
+
+RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh && \
+    sdk install java 17.0.3-ms && \
+    sdk default java 17.0.3-ms"
diff --git a/.gitpod.yml b/.gitpod.yml
index 43008e844a..581cd82d57 100644
--- a/.gitpod.yml
+++ b/.gitpod.yml
@@ -1,3 +1,6 @@
+image:
+    file: .gitpod.Dockerfile
+
 additionalRepositories:
     - url: https://github.com/apache/shenyu-dashboard.git
       checkoutLocation: frontend
@@ -19,8 +22,6 @@ tasks:
 
     - name: Setup backend
       init: |
-          sdk install java 17.0.11.fx-zulu < /dev/null
-          sdk default java 17.0.11.fx-zulu < /dev/null
           mvn clean install -DskipTests
       command: |
           gp sync-done setup-backend
diff --git a/.licenserc.yaml b/.licenserc.yaml
index 7d51206dec..12e4c7acfd 100644
--- a/.licenserc.yaml
+++ b/.licenserc.yaml
@@ -39,6 +39,7 @@ header:
     - '**/.gitignore'
     - '**/.gitmodules'
     - '**/.git/**'
+    - '**/.gitpod.Dockerfile'
     - '**/.gitpod.yml'
     - '**/.travis.yml'
     - '**/.codecov.yml'
diff --git a/pom.xml b/pom.xml
index 8b2fad87b6..1e61470761 100644
--- a/pom.xml
+++ b/pom.xml
@@ -793,6 +793,7 @@
                         <!-- GitHub files -->
                         <exclude>**/.github/**</exclude>
                         <!-- Gitpod files -->
+                        <exclude>**/.gitpod.Dockerfile</exclude>
                         <exclude>**/.gitpod.yml</exclude>
                         <!-- document files -->
                         <exclude>**/*.md</exclude>

Reply via email to