diff --git a/x-pack/plugin/esql/compute/build.gradle b/x-pack/plugin/esql/compute/build.gradle index 0fd5b0064fa7d..1851e2f449da0 100644 --- a/x-pack/plugin/esql/compute/build.gradle +++ b/x-pack/plugin/esql/compute/build.gradle @@ -19,7 +19,7 @@ tasks.named('checkstyleMain').configure { excludes = [ "**/*.java.st" ] } -spotlessJava.dependsOn stringTemplates +tasks.named("spotlessJava") { dependsOn stringTemplates } spotless { java {