Gradle fails to download a dependency if HTTP HEAD is not supported by a web server

I just ran into the same issue in my attempt to use GitHub Releases as Maven Repository use-github-releases-as-dependency-repository-plugin

Btw, I’ve generalised the Ivy repo, as long as the jars follow default naming conventions.

    ivy {
        url 'https://github.com/IsNull'
        layout ('pattern') {
            artifact '[organisation]/releases/download/v[revision]/[artifact]-[revision](-[classifier])(.[ext])'
        }
    }

This way, the dependency can be specified simply as

dependencies {
    compile("MyRepository:my-artifact:0.1.3")
   ...

}