You must define the version-file property before calling the write-version-file target.