Skip to content

Jetty Bootstrap

Create embedded Jetty applications with handlers, Jakarta Servlet APIs, graceful shutdown, and integration tests.

Help AI coding tools scaffold embedded Jetty applications that start cleanly, expose HTTP endpoints, shut down gracefully, and include automated HTTP tests.

Planned across Grok, GitHub Copilot, and Claude Code.

  • Java 21 (preferred)
  • Java 17 (supported)
Platform Repository Status
Grok java-for-grok Planned
GitHub Copilot java-for-github-copilot Planned
Claude Code java-for-claude-code Planned
  • Embedded server bootstrap for library-style or standalone apps
  • Handler-based HTTP APIs
  • Jakarta Servlet deployments inside Jetty
  • Graceful shutdown and integration testing
Bootstrap an embedded Jetty application using Java 21 and Maven with a JSON handler, graceful shutdown, and integration tests.
Create an embedded Jetty app that deploys a Jakarta Servlet and serves a health endpoint.
Add HTTP integration tests that start the embedded server on an ephemeral port.
src/
├── main/
│ ├── java/
│ │ └── com/example/app/
│ │ ├── Application.java
│ │ ├── server/
│ │ │ └── JettyServerFactory.java
│ │ └── handler/
│ └── resources/
└── test/
└── java/

Planned — track java-for-grok.

  • Skill content is designed ahead of platform packaging.
  • Does not cover external servlet-container deployments as the primary path.
  • Security and observability remain separate concerns.
  • Land initial Available packaging on at least one platform
  • Expand servlet vs handler examples
  • Align with Jetty 12 Jakarta APIs and testing patterns