Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getDependencies takes minutes to complete. #200

Closed
jdochez opened this issue Sep 10, 2021 · 4 comments · Fixed by #216
Closed

getDependencies takes minutes to complete. #200

jdochez opened this issue Sep 10, 2021 · 4 comments · Fixed by #216

Comments

@jdochez
Copy link
Collaborator

jdochez commented Sep 10, 2021

Please see :
https://buganizer.corp.google.com/issues/199091104

There is a Gradle Scan indicating that the getDependencies task is taking 9 minutes and 28 seconds to compete (for a 9m 48s total build time).

@dvdgl
Copy link

dvdgl commented Sep 13, 2021

Hi, I tried disabling com.google.android.gms.oss.licenses.plugin.DependencyTask as requested. Did it by adding

tasks.whenTaskAdded { task -> if(task.name.contains("dependencyTask")) { task.enabled = false } }

to my project build.gradle file, and the next build took 2:30 mins. The subsequent ones (if no code changes) take only a few seconds.

@scott-pollom
Copy link

@dvdgl, how long does the build take if you re-enable the task and run ./gradlew :app:getDependencies (as opposed to running ./gradlew assembleRelease)

@dvdgl
Copy link

dvdgl commented Sep 14, 2021

@scott-pollom It took 2m 28s

@scott-pollom
Copy link

Thanks. I was able to create a repro project based on your build scan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants