Run a Gradle task
devilge_run_gradle_taskRun a Gradle task and get a structured summary of compile errors, test results, lint findings, and failure details.
Instructions
Runs a Gradle task in the configured Android/KMM project (via the project's gradlew wrapper) and returns a structured summary: success flag, parsed compile errors (kotlinc/javac/kapt/ksp), JUnit test results from build/test-results, Android Lint findings, "What went wrong" failure blocks, plus the tail of stdout/stderr.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Gradle task to run, e.g. "assembleDebug", "test", "lint", "detekt", ":app:assembleDebug", ":modules:feature:appointment:test". Some destructive patterns (publish*, *release deploys, uninstall*) are blocked. | |
| extraArgs | No | Additional arguments forwarded to Gradle (e.g. ["-PenvName=staging"]). | |
| tailBytes | No | How many bytes of tail output to retain (default 262144 = 256 KiB). | |
| timeoutMs | No | Hard timeout in ms. Default 300000 (5 min). Cap 1800000 (30 min). |