Существует открытый выпуск для этой "ошибки"
На данный момент вы можете обнаружить символические ссылки и, возможно, создать их вручную
import java.nio.file.FileSystems
import java.nio.file.Files
import java.nio.file.Path
copy {
from $source
into $destination
eachFile { details ->
Path pathFile = FileSystems.getDefault().getPath(details.file.path)
if(Files.isSymbolicLink(pathFile)) {
details.exclude()
commandLine 'ln', '-s', Files.readSymbolicLink(pathFile), "$destination/${details.relativePath}
}
}
}