Downloading jars from MavenCentral does not work at my company.
As I understand, Ivy is used to handle repositories. I could trace the problem down to the fact, that Ivy (out of the box) does not work either, due to problems with the proxy and checksums.
I could fix the Ivy problem by forcing md5 checksums to be used in the ant script:
After some research I found articles suggesting there may be problems with squid proxies and sha1 checksums. Therfore I tried the following < property name=“ivy.checksums” value=“md5” /> in the Ant script. It forces Ivy to use md5 checksums instead of sha1 and this works for me. Is it possible that there is a similar problem with gradle? And if so, what can I do?
The strange thing is that when I use M6 with a simple build, it makes no attempt to download md5 or sha1 checksums. The log message you provide indicates that the GET request for the POM is failing.
Can you confirm that the following build breaks for you using M6? (You might want to temporarily move your .gradle/caches directory out of the way to ensure that caching isn’t having any impact.)
repositories {
mavenCentral()
}
configurations {
one
}
dependencies {
one "commons-collections:commons-collections:3.2"
}
task show << { println configurations.one.files }
It’s not currently possible to specify proxy settings for the http connection used by built-in repository types (ivy {}, maven {}, mavenCentral {} etc). However, you can define a raw ivy resolver in the repositories block, giving you the power to configure it in any way you like (including setting the ‘checksums’ property).
So here are some things to try: - Try your build using Milestone 3, Milestone 5 and Milestone 6: is it broken with all versions? The log files from each of these could help diagnose the problem. - Try configuring an ivy resolver directly: check out section 34.5.6here
To put code blocks in your post, surround them with a <code/> tag.
with M-3 the simple build script (dependencies one) from above works for me, but the samples java\quickstart and groovy\quickstart still fail. With M-5 and M-6 even the simple script failes.
What is the best way to provide all the log files?