Create a Quarkus Project

Create a Quarkus Project

Guides an agent to scaffold a new Quarkus project with the CLI, API or Maven plugin, pick extensions and run it in dev mode, with notes on config, database and security.

Skill files6 files

references/

SKILL.md89 lines
1
---
2
name: create-quarkus-project
3
description: 'Create a new Quarkus project (Maven or Gradle) with the Quarkus CLI, code.quarkus.io API or Maven plugin, choose extensions, and run it in dev mode. Use when asked to scaffold, bootstrap or start a Quarkus application or REST API.'
4
---
5
6
# Create a Quarkus Project
7
8
## 1. Detect the environment
9
10
```bash
11
java -version # Java 17, 21 or 25 (Quarkus 3.40 recommends 25, 3.27 recommends 21)
12
quarkus --version # optional Quarkus CLI
13
./mvnw -v || mvn -v # or ./gradlew -v
14
```
15
16
If the folder already contains a Quarkus project (`io.quarkus.platform` BOM, `quarkus-maven-plugin`, or `io.quarkus` Gradle plugin), do NOT scaffold: read its Quarkus version and keep it. For a new project, use the stream marked recommended on https://code.quarkus.io/api/streams (an LTS stream; see also https://quarkus.io/support/), and do not invent a patch version: let the tool pick it. Quarkus 4.0 is still a beta, so do not use it unless asked. If an extension is missing from the recommended stream, the CLI silently picks an older stream; check `quarkus.platform.version` in the generated build file.
17
18
## 2. Scaffold (pick one)
19
20
Quarkus CLI (install via https://quarkus.io/get-started/ , e.g. SDKMAN `sdk install quarkus`):
21
22
```bash
23
quarkus create app com.example:demo \
24
--extension='rest-jackson,hibernate-orm-panache,jdbc-postgresql,hibernate-validator,smallrye-health' \
25
--java=21 --maven # or --gradle
26
```
27
28
No CLI: Maven plugin (pin the version to the current release from https://quarkus.io/guides/maven-tooling, replace `QUARKUS_VERSION` below with it):
29
30
```bash
31
mvn io.quarkus.platform:quarkus-maven-plugin:QUARKUS_VERSION:create \
32
-DprojectGroupId=com.example -DprojectArtifactId=demo \
33
-Dextensions='rest-jackson,hibernate-orm-panache,jdbc-postgresql' \
34
-DbuildTool=maven # or gradle
35
```
36
37
Or generate from the https://code.quarkus.io web UI / REST API (`https://code.quarkus.io/d?g=com.example&a=demo&e=rest-jackson&b=MAVEN`) and unzip.
38
39
## 3. Choose extensions
40
41
| Need | Extension |
42
|---|---|
43
| REST + JSON | `rest-jackson` (Quarkus REST; not legacy `resteasy`) |
44
| Database ORM | `hibernate-orm-panache`, `jdbc-postgresql` |
45
| Validation | `hibernate-validator` |
46
| Health / metrics | `smallrye-health`, `micrometer-registry-prometheus` |
47
| Auth | `oidc` or `smallrye-jwt` |
48
| OpenAPI | `smallrye-openapi` |
49
| REST client | `rest-client-jackson` |
50
| Container | `container-image-jib` (or `container-image-docker`) |
51
52
Add later with `quarkus extension add <name>` or `./mvnw quarkus:add-extension -Dextensions=<name>`; `quarkus extension list --installable` lists options.
53
54
## 4. Layout and run
55
56
```
57
src/main/java/... # resources, services, entities
58
src/main/resources/application.properties
59
src/main/docker/ # Dockerfile.jvm, Dockerfile.native, ...
60
src/test/java/... # @QuarkusTest / @QuarkusIntegrationTest
61
```
62
63
```bash
64
./mvnw quarkus:dev # or: quarkus dev / ./gradlew quarkusDev
65
```
66
67
Generated tests include a `*IT` class that Maven skips by default (`<skipITs>true</skipITs>` in the template); run it with `./mvnw verify -DskipITs=false` or `-Dnative`. Dev mode gives live reload, Dev UI at http://localhost:8080/q/dev-ui, Dev Services (auto containers), and continuous testing (press `r`). Package: `./mvnw package` (runnable `target/quarkus-app/quarkus-run.jar`).
68
69
## References
70
71
- [Configuration](references/configuration.md)
72
- [Database (Dev Services, Hibernate, Flyway/Liquibase)](references/database.md)
73
- [Security basics](references/security.md)
74
- [Container images](references/container-image.md)
75
- [Local runtime insights (BootUI)](references/local-runtime-insights.md)
76
77
Verified (scaffold, `./mvnw verify`, `./gradlew build`, dev mode, Dev Services PostgreSQL, JDK 26 with Java 25 release) on Quarkus 3.40.1 (current recommended LTS stream) and `./mvnw verify` on 3.27.6 (older LTS).
78
79
Related skills: `quarkus-dev-services-and-testing`, `quarkus-native-and-container`.
80
81
## Upstream sources (read before upgrading)
82
83
Fetch the page for the target version; prefer it over this skill when they conflict.
84
85
- `quarkus update` (automated upgrade, uses OpenRewrite): <https://quarkus.io/guides/update-quarkus>
86
- Migration guides, one wiki page per minor: <https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.20> (change the version)
87
- Release announcements: <https://quarkus.io/blog/>
88
- LTS policy and current LTS: <https://quarkus.io/blog/lts-releases/>
89

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 11,970 prompts

More by @OpenSourceBuffGuy

See all
Pastel autumn outfit lookbook with handwritten annotations prompt image

Pastel autumn outfit lookbook with handwritten annotations

Creates a pastel e-commerce fashion lookbook poster of a model in a simple autumn outfit, with handwritten labels, arrows and a bold headline.

image-prompt, fashion, fashion-shoot, poster, text-rendering, pastel, autumn, full-body, woman, minimalist, negative-space, vertical-format, gpt-image, product-photography, social-media-graphic, photorealistic, for-online-sellers, for-designers, portrait, editorial, whimsical, cozy, studio-lighting

Premium food photography template prompt image

Premium food photography template

Creates a steaming, glossy spicy Sichuan-style dish photo in a dark bowl with chilies and restaurant props, with the food and ratio left to fill in.

image-prompt, gpt-image, food-photography, photorealistic, cinematic, moody, dramatic-lighting, bokeh, close-up, high-angle, square-format, placeholders, template, negative-prompt, cooking, restaurants, product-photography, for-photographers, for-small-business-owners, for-online-sellers, advertising

Configuration Validation prompt image

Configuration Validation

Builds configuration validation for an application: schemas, per-environment rules, runtime checks, secret handling, tests and a security report.

slash-command, code-generation, python, best-practices, security-review, testing, audit, yaml-prompt, developer-tools, for-developers, for-devops-engineers, code, report, documentation, migration, advanced, long-form, devops, deployment, structured-output

Reviews

Loading reviews…

Discussion

Loading comments…