Skip to content

Commit 000afda

Browse files
committed
feat(instructions): add useful commands for Gradle and Maven
1 parent abddc8c commit 000afda

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

instructions/springboot.instructions.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,13 @@ applyTo: '**/*.java, **/*.kt'
5656
- If the project uses Maven, run `mvn clean package`.
5757
- If the project uses Gradle, run `./gradlew build` (or `gradlew.bat build` on Windows).
5858
- Ensure all tests pass as part of the build.
59+
60+
## Useful Commands
61+
62+
| Gradle Command | Maven Command | Description |
63+
|:--------------------------|:----------------------------------|:----------------------------------------------|
64+
| `./gradlew bootRun` |`./mvnw spring-boot:run` | Run the application. |
65+
| `./gradlew build` |`./mvnw package` | Build the application. |
66+
| `./gradlew test` |`./mvnw test` | Run tests. |
67+
| `./gradlew bootJar` |`./mvnw spring-boot:repackage` | Package the application as a JAR. |
68+
| `./gradlew bootBuildImage`|`./mvnw spring-boot:build-image` | Package the application as a container image. |

0 commit comments

Comments
 (0)