feat(instructions): add useful commands for Gradle and Maven (#318)

This commit is contained in:
Kartik Dhiman 2025-10-16 04:33:40 +05:30 committed by GitHub
parent 17018479a7
commit 7786c82cad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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. |