Skip to content

Commit

Permalink
[Gradle] Fix configuration cache for validateChangelogs task definiti…
Browse files Browse the repository at this point in the history
…on (#116716) (#119277)

(cherry picked from commit 31492f5)
  • Loading branch information
breskeby authored Dec 25, 2024
1 parent d4c328f commit d3252b0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,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") {
Expand Down

0 comments on commit d3252b0

Please sign in to comment.