setBuildCacheEnabled

open fun setBuildCacheEnabled(buildCacheEnabled: Boolean)(source)

Enables/disables the build cache.

Calling this on the start parameter of a running build is deprecated: use the org.gradle.caching Gradle property instead. It is not annotated as deprecated because it remains the only way to configure the build a GradleBuild task runs.

Since

3.5