Expanding a tar.gz with tarTree loses symlinks

Wow, I know that problem back from 2013. Today I stumbled again into it.
Using gradle 4.10.3. (on macos)
Is this still a problem, or am I doing something wrong?
After expansion all symlinks are 0 bytes and not linked any more.

copy {
from tarTree(file("${buildDir}/Engine.tar.gz"))
into “$appDir/Resources/”
}

If I do it via terminal (tar -xzf Engine.tar.gz) , everything is alright.

I have just hit this problem while trying to expand the git-for-windows bzip2 distribution. The tar tree contains hard links which Gradle expands into empty files.