[Gradle] Fix configuration cache for validateChangelogs task definition (#116716)

This commit is contained in:
Rene Groeschke 2024-11-13 13:04:12 +01:00 committed by GitHub
parent 126cf6c0a8
commit 31492f52a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -420,8 +420,11 @@ gradle.projectsEvaluated {
}
}
tasks.named("validateChangelogs") {
onlyIf { project.gradle.startParameter.taskNames.any { it.startsWith("checkPart") || it == 'functionalTests' } == false }
tasks.named("validateChangelogs").configure {
def triggeredTaskNames = gradle.startParameter.taskNames
onlyIf {
triggeredTaskNames.any { it.startsWith("checkPart") || it == 'functionalTests' } == false
}
}
tasks.named("precommit") {