Skip to content

Commit 60b8f21

Browse files
authored
Configuring gitpod with java (#523)
1 parent d364532 commit 60b8f21

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.gitpod.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM gitpod/workspace-full
2+
3+
USER gitpod
4+
5+
RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh && \
6+
sdk install java 17.0.3-ms && \
7+
sdk default java 17.0.3-ms"

.gitpod.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
14
additionalRepositories:
25
- url: https://github.com/apache/shenyu.git
36
checkoutLocation: backend
@@ -19,8 +22,6 @@ tasks:
1922
- name: Setup backend
2023
before: cd ../backend
2124
init: |
22-
sdk install java 17.0.11.fx-zulu < /dev/null
23-
sdk default java 17.0.11.fx-zulu < /dev/null
2425
mvn clean install -DskipTests
2526
command: |
2627
gp sync-done setup-backend

0 commit comments

Comments
 (0)