我正在构建插件以发布和部署
对此我正在使用星云释放插件
我的任务名称为deployDev
并确定版本的部分将增加,我必须调用
./gradlew deployDev -Prelease.scope=patch
但属性release.scope我将设置任务,因为开发人员的驱逐错误
我正在尝试
def deployDev = project.tasks.create('deployDev', {
dependsOn project.rootProject.tasks.release
})
project.rootProject.tasks.release.dependsOn(setReleaseScope)
setReleaseScope.with {
def scope = "patch"
if (project.gradle.startParameter.taskNames.contains('increaseMinor')) {
scope = "minor"
}
if (project.gradle.startParameter.taskNames.contains('increaseVersion')) {
scope = "major"
}
project.rootProject.ext."release.scope" = scope
}
但它不起作用
有可能吗?任何提示?
感谢