Skip to content

Commit 4ce6ffd

Browse files
authored
[improve] Configuring gitpod with java (apache#3141)
1 parent 9f34d20 commit 4ce6ffd

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
tasks:
25

36
- name: Run backend
@@ -15,8 +18,6 @@ tasks:
1518

1619
- name: Setup backend
1720
init: |
18-
sdk install java 17.0.11.fx-zulu < /dev/null
19-
sdk default java 17.0.11.fx-zulu < /dev/null
2021
mvn clean install -DskipTests
2122
command: |
2223
gp sync-done setup-backend

0 commit comments

Comments
 (0)