From 7786c82cade844a118feb489e71b3bafd0f3ae0d Mon Sep 17 00:00:00 2001 From: Kartik Dhiman <59189590+kartikdhiman@users.noreply.github.com> Date: Thu, 16 Oct 2025 04:33:40 +0530 Subject: [PATCH] feat(instructions): add useful commands for Gradle and Maven (#318) --- instructions/springboot.instructions.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/instructions/springboot.instructions.md b/instructions/springboot.instructions.md index 2d26b71..e0d0285 100644 --- a/instructions/springboot.instructions.md +++ b/instructions/springboot.instructions.md @@ -56,3 +56,13 @@ applyTo: '**/*.java, **/*.kt' - If the project uses Maven, run `mvn clean package`. - If the project uses Gradle, run `./gradlew build` (or `gradlew.bat build` on Windows). - Ensure all tests pass as part of the build. + +## Useful Commands + +| Gradle Command | Maven Command | Description | +|:--------------------------|:----------------------------------|:----------------------------------------------| +| `./gradlew bootRun` |`./mvnw spring-boot:run` | Run the application. | +| `./gradlew build` |`./mvnw package` | Build the application. | +| `./gradlew test` |`./mvnw test` | Run tests. | +| `./gradlew bootJar` |`./mvnw spring-boot:repackage` | Package the application as a JAR. | +| `./gradlew bootBuildImage`|`./mvnw spring-boot:build-image` | Package the application as a container image. |