使用 DSL 配置项目版本信息。
示例:
setVersion { name = "1.0.0-beta" code = 1}
Version 的实例,可在闭包内直接配置其属性。
用于构建 Version 对象的配置闭包。