[GRADLE-1894] Gradle trying to download sources & javadocs for all dependencies results in a very slow build Created: 04/Nov/11  Updated: 14/Jan/16  Resolved: 05/Nov/11

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-5
Fix Version/s: 1.0-milestone-6

Type: Bug
Reporter: raja chawat Assignee: Unassigned
Resolution: Fixed Votes: 0


 Description   

I am using Artifactory to resolve all project dependencies. I have a multi-module project with several dependencies.
Gradle tries to look for sources and javadocs for each dependency listed in the build.gradle file during a build (not when setting up eclipse or idea project). This results in a very slow build since Artifactory can't find sources in the remote repositories.

There should be some configuration for not to look for sources and javadocs by default unless instructed. And why is the build looking up for sources and javadocs. Generally, it is done when you are setting up IDE projects.

Command used: gradle build -x test --stacktrace --debug

Snipplet from the build:

[DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] trying http://repo.xyx.com/artifactory/repo/com/oracle/ojdbc6/11.1.0.6.0/ojdbc6-11.1.0.6.0-sources.jar15:28:15.867 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] tried http://repo.xyx.com/artifactory/repo/com/oracle/ojdbc6/11.1.0.6.0/ojdbc6-11.1.0.6.0-sources.jaratform:ctld-parent:ctld-services:ctld-bo:compile'
15:29:15.904 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] HTTP response status: 404 url=http://repo.xyx.com/artifactory/repo/com/oracle/ojdbc6/11.1.0.6.0/ojdbc6-11.1.0.6.0-sources.jar



 Comments   
Comment by Trejkaz [ 14/Jan/16 ]

I have noticed the issue with this being slow as well, but I see it even for existing files, not just missing ones.

We also use Artifactory. I'm sure it isn't a coincidence. My theory was that Artifactory could be caching these things, but for whatever stupid reason is not doing so.

Generated at Wed Jun 30 12:07:14 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.