Publish Intellij IDEA failed with gradle-download-task-3.2.0
Hi,
I downloaded Intellij IDEA source code and use Intellij IDEA Community 2017.3 to compile it. It passed with the provided configuration 'IDEA'.
And now, I want to publish it which means I need an install package, just like ideaIC2017.exe.
I assume what I need to do is Run build/dependencies/idea_community.gant. Then I choose the target 'Build intellij-core.zip' to run. But a Error occurred:
* What went wrong:
A problem occurred configuring root project 'dependencies'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve de.undercouch:gradle-download-task:3.2.0.
Required by:
:dependencies:unspecified
> Could not resolve de.undercouch:gradle-download-task:3.2.0.
> Could not get resource 'http://repo.labs.intellij.net/plugins-gradle-org/de/undercouch/gradle-download-task/3.2.0/gradle-download-task-3.2.0.pom'.
> Could not GET 'http://repo.labs.intellij.net/plugins-gradle-org/de/undercouch/gradle-download-task/3.2.0/gradle-download-task-3.2.0.pom'.
> repo.labs.intellij.net
> Could not resolve de.undercouch:gradle-download-task:3.2.0.
> Could not get resource 'https://plugins.gradle.org/m2/de/undercouch/gradle-download-task/3.2.0/gradle-download-task-3.2.0.pom'.
> Could not GET 'https://plugins.gradle.org/m2/de/undercouch/gradle-download-task/3.2.0/gradle-download-task-3.2.0.pom'.
> Connect to plugins.gradle.org:443 [plugins.gradle.org/104.16.171.166, plugins.gradle.org/104.16.174.166, plugins.gradle.org/104.16.175.166, plugins.gradle.org/104.16.172.166, plugins.gradle.org/104.16.173.166] failed: Connection timed out: connect
The first link I highlighted probably be your private address to develop, and the second should be for us. But the second link can not access.
I googled that package name, and replaced the second maven url link 'https://plugins.gradle.org/m2' with 'http://central.maven.org/maven2' in file build/dependencies/build.gradle and build/dependencies/setupAndroidSdk.gradle. However, it still give me the same Error:
> Could not resolve de.undercouch:gradle-download-task:3.2.0.
> Could not get resource 'http://central.maven.org/maven2/de/undercouch/gradle-download-task/3.2.0/gradle-download-task-3.2.0.pom'.
> Could not GET 'http://central.maven.org/maven2/de/undercouch/gradle-download-task/3.2.0/gradle-download-task-3.2.0.pom'.
> Connect to central.maven.org:80 [central.maven.org/151.101.24.209] failed: Connection timed out: connect
I can access the link in the log. I don't know how to fix this error and I am not sure whether I am on the right way to get a installation package. Can anyone give me some advice? Many thanks!
Please sign in to leave a comment.
The build is failed by timeout, please check your internet connection. Can you open https://plugins.gradle.org/plugin/de.undercouch.download/3.2.0?
yes, I can open https://plugins.gradle.org/plugin/de.undercouch.download/3.2.0.
I tried the two link https://plugins.gradle.org/m2 and http://central.maven.org/maven2 at IDEA Settings -> Http Proxy -> Manual proxy configuration, click 'Check connection', both of them is connection successful.
UPDATE: Connection is OK now[solution: manual add proxy in file:gradle.properties], new error:
I tried the method on https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000094584/comments/115000405564
I get the .cer on https://plugins.gradle.org , but it does not work now.
IDEA Proxy settings have nothing to do with Gradle. If you need to set a proxy, set it for Gradle in GRADLE_HOME/gradle.properties: https://docs.gradle.org/current/userguide/build_environment.html#sec:accessing_the_web_via_a_proxy
Closed!
@Alexander, yes ,I have manually add proxy in gradle.properties, and realized that IDEA Proxy setting has no connection with Gradle.
My second question about 'unable to find valid certification path to requested target' has been fixed, too. I think i have dumped out the wrong certificate. I put a detail comment at https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000094584/comments/360000110684.
Thanks for Alexander's hint.
Good to hear! Thank you for heads up.