The script included below fails with the following error:
./gradlew clean extractValidator
Could not resolve all dependencies for configuration ‘:vnuValidator’.
Could not resolve :vnu:15.4.12.
Required by:
:gradle-dep-head:unspecified
Could not HEAD ‘http://github.com/validator/validator/releases/download/15.4.12/vnu.jar_15.4.12.zip’. Received status code 403 from server: Forbidden
repositories {
ivy {
url “http://github.com/validator/validator/releases/download/”
layout “pattern”, {
artifact “[revision]/[module].jar_[revision].[ext]”
}
}
}
apply plugin: “java”
configurations {
vnuValidator
}
dependencies {
vnuValidator “:vnu:15.4.12@zip”
}
task extractValidator(type: Copy) {
configurations.vnuValidator.each{zipTree(it)}
into “$buildDir/vnu”
}