Changing State Cache Behaviour

In order for Gradle to do the best job it can, in determining whether tasks are up to date, it perform a state pull operation after each tofuApply, tofuImport, tofuStateMv`, tofuStateRm, tofuTaint and tofuUntaint`. It will also perform a plan --refresh-only under the hood in tofuPlan tasks.

This might seem strange to people coming directly from working with OpenTofu, where people are working manually and have more cognitive control over their process. It is possible the above behaviour off, by setting these Gradle properties to true:

  • org.ysb33r.iac.tf.state.cache.disabled — Prevent state being pulled after each of the mentioned operations.

  • org.ysb33r.iac.tf.auto.plan.refresh.disabled — Prevent additional plan operation to be executed inside the tofuPlan tasks,