build_project
Builds and packages Java projects with Maven or Gradle, returning build artifacts and duration. Configure clean builds, modules, test skipping, and Java version as needed.
Instructions
Build/package a Java project using Maven or Gradle. Returns build artifacts and duration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clean | No | Run clean before build (default: false) | |
| module | No | Module(s) to include/exclude (e.g., "core,api" or "!slow-tests" or "core,!tests") | |
| alsoMake | No | Build required dependencies with -am flag (default: true, Maven only) | |
| skipTests | No | Skip running tests during build (default: true) | |
| javaVersion | No | Java version to use (e.g., "17.0.16-amzn", "21.0.8-tem") | |
| projectPath | Yes | Path to the project root directory |