Skip to content

Commit 1b0b51b

Browse files
authored
Update .gitpod.yml
This Gitpod configuration automates the setup for a Java web application, ensuring a smooth development experience. It uses Maven for building the project and Jetty for running the server on port 8080. The setup includes prebuilt environments for faster initialization, IntelliJ and VS Code extensions for Java support, and optimized port handling for seamless preview. The configuration also supports prebuilding pull requests from forks, improving collaboration efficiency.
1 parent 8a554d2 commit 1b0b51b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.gitpod.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
tasks:
22
- init: |
3-
mvn -am -pl war,bom -P quick-build clean install
3+
mvn -B -T 1C -DskipTests package
44
command: |
5-
mvn -pl war jetty:run -Dhost=0.0.0.0
5+
mvn -pl war jetty:run -Djetty.http.port=8080 -DskipTests
66
name: Run
7-
- command: gp ports await 8080 && gp url 8080 && gp preview $(gp url 8080)/jenkins/
8-
name: Preview
7+
8+
ports:
9+
- port: 8080
10+
onOpen: open-preview
911

1012
github:
1113
prebuilds:
@@ -15,13 +17,12 @@ github:
1517
jetbrains:
1618
intellij:
1719
plugins:
18-
- Stapler plugin for IntelliJ IDEA
19-
prebuilds:
20-
version: stable
20+
- "org.jetbrains.plugins.stapler"
2121

2222
vscode:
2323
extensions:
2424
- vscjava.vscode-java-pack
25+
- redhat.vscode-xml
2526

2627
image:
2728
file: .gitpod/Dockerfile

0 commit comments

Comments
 (0)