Offline gradle wrapper Setup still wants to download gradle[…]

We need to use a gradle project in an offline only environment. With setting the ‘distributionUrl’ to a local folder we can use a locally available

But during building the corresponding is tried to be downloaded which obviously fails.
How can we ship a local ?

Btw: this also happens when setting the distributionUrl to