Skip to content

CICD-077 · Run Gradle quality gates ​

Encyclopedia · Language build toolchains · All snippets

Previous · CICD-076 · Next · CICD-078

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites source repository with committed build manifest and pinned matching toolchain.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
./gradlew --no-daemon clean check assemble

3. How it works ​

The Gradle wrapper uses the project version. This invocation clears outputs, runs configured quality tasks and packages the project with assemble.

4. Verify the result ​

Use an approved JDK/version and include wrapper files in version control.

Validation syntax-validated (Bash parse). Status definitions.