What’s the best way to have a Gradle build depend on a file downloaded from a plain http URL? This is a file that isn’t part of an Ivy/Maven repository, though it does have a version number in its path and can be cached.
I think what you need to do is specify this URL as a repository and specify a normal dependency. I haven’t done this, but from what I just read, it seems like if you specify this as a “maven” repository, even though it doesn’t have a POM descriptor, it should find the jar.
I found an old thread that seems to be relevant.
I would go with a ivy repository and a custom url pattern you need to
configure. have a look at the according chapter in the gradle userguide
For those that will later stumble across this :