# Task 'deploy' not found in project ':app'. Available tasks: assemble, build, clean, jar, test, ...

- **ID:** `java/gradle-missing-task-definition`
- **Domain:** java
- **Category:** build_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The 'deploy' task is not defined in the build script or is defined in a subproject that is not included.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 7+ | active | — | — |

## Workarounds

1. **Define the 'deploy' task in the build script** (95% success)
   ```
   task deploy { doLast { println 'Deploying...' } }
   ```
2. **Check the available tasks and use an existing one like 'publish'** (90% success)
   ```
   gradle tasks --group build
   ```

## Dead Ends

- **Creating a custom task with the same name but no implementation** — The task will do nothing and may cause confusion. (80% fail)
- **Running the task in a different subproject** — The task may not exist there either, or it may be the wrong one. (70% fail)
