lucene/gradle/validation/validate-source-patterns.gr...

26 lines
678 B
Groovy

// Equivalent of ant's "validate-source-patterns".
// This should be eventually rewritten in plain gradle. For now, delegate to
// the ant/groovy script we already have.
configurations {
checkSourceDeps
}
dependencies {
checkSourceDeps "org.codehaus.groovy:groovy-all:2.4.17"
checkSourceDeps "org.apache.rat:apache-rat:0.11"
}
configure(rootProject) {
task validateSourcePatterns() {
doFirst {
ant.taskdef(
name: "groovy",
classname: "org.codehaus.groovy.ant.Groovy",
classpath: configurations.checkSourceDeps.asPath)
ant.groovy(src: project(":lucene").file("tools/src/groovy/check-source-patterns.groovy"))
}
}
}