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 task is run on every build #146

Closed
JJSarrasin opened this issue Jun 12, 2020 · 2 comments · Fixed by #169
Closed

getDependencies task is run on every build #146

JJSarrasin opened this issue Jun 12, 2020 · 2 comments · Fixed by #169

Comments

@JJSarrasin
Copy link

The getDependencies task is run on every build and it takes (in my case approximatively 700ms to do it, about 26% of my compile time)
I have a warning in AS Build Analyzer advising to contact the developer :)
Would it be possible to execute this test on gradle sync ?

Here is the "bug report":
At 15:57, Jun 12, 2020, Android Studio detected an issue with Gradle plugin com.google.android.gms.oss-licenses-plugin

Always-run Tasks
Task runs on every build because it declares no outputs.

Plugin: com.google.android.gms.oss-licenses-plugin
Task: getDependencies
Task type: com.google.android.gms.oss.licenses.plugin.DependencyTask
Issue detected in 1 module(s), total execution time was 0.678 s (26.2%), by module:
Execution mode: FULL, time: 0.678 s (26.2%), determines build duration: true, on critical path: false

====Build information:====
Execution date: 12.06.20, 15:57
Total build duration: 10.009 s
Configuration time: 5.058 s (50.5%)
Critical path tasks time: 2.591 s (25.9%)
Critical path tasks size: 60
AGP versions: 4.0.0
====Platform information:====
AI-193.6911.18.40.6514223, JRE 1.8.0_242-release-1644-b3-6222593x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.15.4, screens 2560x1440, 1680x1050; Retina

AS: 4.0; Kotlin plugin: 1.3.72-release-Studio4.0-1; Android Gradle Plugin: 4.0.0; Gradle: 6.1.1; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)

@no1isnothing
Copy link

Changing the task to execute after gradle sync should work.

@caller9
Copy link
Collaborator

caller9 commented Apr 5, 2021

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