Skip to content

Commit

Permalink
🧑‍💻 GitPod - ready to code environment configuration for Java project
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 3, 2022
1 parent 3155040 commit f8c2bfc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM gitpod/workspace-full

RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh \
&& sdk install java 21.3.0.r17-grl \
&& sdk use java 21.3.0.r17-grl"
18 changes: 18 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
image:
file: .gitpod.Dockerfile

tasks:
- init: ./mvnw package -DskipTests
command: java -jar target/*.jar

# exposed ports
ports:
- port: 8080
onOpen: open-preview

vscode:
extensions:
- redhat.java
- vscjava.vscode-java-debug
- vscjava.vscode-java-test
- pivotal.vscode-spring-boot

0 comments on commit f8c2bfc

Please sign in to comment.