IDE does not try to analyze Gradle scripts directly, it works with declarative model that is created by executing Gradle scripts.
Gradle works in two stages:
1. Configuration: scripts execute and produce software model (DAG of tasks essentially).
2. Execution of necessary tasks in the graph.
IDE cannot get the graph by analyzing scripts, but it does not need to: instead it can ask Gradle for the model. The model itself has nothing to do with Turing completeness.
IDE cannot get the graph by analyzing scripts, but it does not need to: instead it can ask Gradle for the model. The model itself has nothing to do with Turing completeness.