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
[java] Resolve dependencies of :pmd > Resolve dependencies of :detachedConfiguration78 #3134
Comments
Thanks for the report. Can you give a bit more information on this issue? PMD uses maven as a build tool, so, I assume, you are using the gradle pmd plugin. Gradle is developed over there -> https://github.com/gradle/gradle If you can give us the information, which dependency is creating you difficulty, we can see, whether PMD brings in this dependency (then we can fix it here) or gradle (then it need to be fixed there). A output from your build would also be helpful. |
Thanks for the quick response! The dependency that is bringing problems is detachedConfiguration78 I would try to post here the stack trace or some more info. |
Without more info, we can't help you. About detachedConfiguration, I found these threads:
As far as I understand, detachedConfiguration has to do with temporary dependency resolution for tasks/extensions.
I guess, at both places, dependency resolution could take place. The second usage uses you project's compile classpath, which means the classpath of your project is maybe once again resolved for PMD. If your dependency resolution anyway takes much time, then it will double if you add the PMD plugin, because then gradle does the same work twice (so far as I understand it. With a newer version of gradle, that could be already optimized). |
Thanks Andreas, as soon as I have time I would check on that, unfortunately I don't have build errors or a stack trace to share here but I will take the time to read those topics you provided! Gradle 6.7Build time: 2020-10-14 16:13:12 UTC Kotlin: 1.3.72 |
Closing this as not reproducible. If you have more information, feel free to comment. |
Affects PMD Version:
From 6.22.0 onwards
Description:
Everytime pmd is executed that dependency must be resolved and it takes 3mins
Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]
gradle
jdk 11.0.2
The text was updated successfully, but these errors were encountered: