My XF spent 12 months in my garage without being driven or even started.
The battery died when I came ack. No problems when I started it again, except for a loud lifter tick that went away with a short drive, and hasn't come back since.
My XF has 6700 miles on it now! (I bought it 2 years ago