最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Gradle Wrapper timeout option not working - Stack Overflow

programmeradmin2浏览0评论

I'm working behind a proxy at my company and often times downloading the Gradle distribution using the wrapper takes longer than 10 seconds. Since 10 seconds is the default timeout period the download fails. I'm trying to adjust the timeout and it's not working.

I'm using Gradle version 8.2, and according the documentation I should be able to use the --network-timeout option. But the following does not work:

./gradlew --network-timeout 30000

I get this output:

Downloading .2-bin.zip
............10%............20%............30%.............40%............50%............60%............70%.............80%............90%............

It hangs at 90% for ten seconds, then fails, regardless of the value I provide for --network-timeout.

Am I missing something obvious?

发布评论

评论列表(0)

  1. 暂无评论