Gradle Flags & Options
JVM build automation tool.All Gradle pages
- gradle --no-daemon: run a build without the Gradle Daemongradle --no-daemon runs a build without reusing or leaving a Gradle Daemon. When to use it in CI, single-use daemons, --stop and --status, gradle.properties.
- gradle --offline: build with cached dependencies onlygradle --offline resolves dependencies and plugins only from the local cache. Preparing the cache, the No cached version error, refresh-dependencies, tuning.
- gradle --stacktrace, --info, --debug, --scan: get more detail on a failed buildgradle --stacktrace prints the stack trace of a failed build; --info, --debug and --scan add logs or a report. Which option to use and what debug logs expose.
- gradle build --refresh-dependencies: ignore the dependency cache--refresh-dependencies makes Gradle re-check every dependency against the repositories instead of trusting its cache. When to use it, and lighter fixes.