diff --git a/gradle/validation/validate-source-patterns.gradle b/gradle/validation/validate-source-patterns.gradle index 1c7967ac521..da357254686 100644 --- a/gradle/validation/validate-source-patterns.gradle +++ b/gradle/validation/validate-source-patterns.gradle @@ -16,7 +16,8 @@ configure(rootProject) { task validateSourcePatterns() { doFirst { ant.taskdef( - resource: 'org/codehaus/groovy/antlib.xml', + name: "groovy", + class: "org.codehaus.groovy.ant.Groovy", classpath: configurations.checkSourceDeps.asPath) ant.groovy(src: project(":lucene").file("tools/src/groovy/check-source-patterns.groovy"))