David Liu

Disable nexus staging plugin stuff while on snapshots

正在显示 1 个修改的文件 包含 13 行增加0 行删除
... ... @@ -62,3 +62,16 @@ ext {
annotations = [
]
}
afterEvaluate {
// These aren't supported for snapshots. From nexus staging plugin.
if (VERSION_NAME.contains("SNAPSHOT")) {
["closeAndReleaseRepository",
"closeRepository",
"createRepository",
"getStagingProfile",
"releaseRepository"]
.forEach { taskName ->
getTasksByName(taskName, false).forEach { task -> task.enabled = false }
}
}
}
\ No newline at end of file
... ...