-
Notifications
You must be signed in to change notification settings - Fork 43
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
The setup-gradle
action with dependency-graph
option fails with Gradle Project Isolation
#202
Comments
Thanks for the report. I'll ensure this gets fixed in some way before Gradle 8.8 is released. |
Can you please test if this problem occurs with |
After testing, it's not related to Gradle 8.8. I don't use the dependency-submission action but the setup action that has no |
Can you please clarify how you are able to reproduce this issue? Are you applying the Dependency Graph plugin directly? Does this issue occur locally when you run the build? |
I guess we should not be applying the ‘ForceDependencyResolutionPlugin’ when you are using the ‘setup-Gradle’ action. |
No, I don't use the dependency plugin manually/locally, this is my workflow file: https://github.com/hfhbd/adventOfCode/blob/gradle88/.github/workflows/main.yml |
You state that this is not related to Gradle 8.8. What change triggered the failure? |
I used a separate workflow in the past but want to simply my workflows by "just enabling" the |
Or does |
The option on ‘setup-gradle’ predates the ‘dependency-submission’ action, and it does something different: it uploads dependencies resolved during the subsequent Gradle builds. Note that you can now combine ‘dependency-submission’ and ‘dependency-review’ as sequential steps in the same Job. |
Okay, got it. Thanks for the explanation and I will use the separate workflows again, it does work as expected. Do you have any plans to deprecate the option in |
Note that you should be able to simply add an additional
Possibly. Just this morning I commented on an issue: Having a separate step that does nothing more than resolve and report dependencies is nice and simple, but a little wasteful compared to simply reporting the dependencies that were resolved in your existing Gradle build. Submitting dependencies resolved in a "real" Gradle execution has a downside: if the build fails then possibly only a subset of dependencies will be reported. This could result in a vulnerability being "fixed", only to reappear the next time the build succeeds. On balance, I think we should move toward a dedicated action that does not impact or interact with existing build processes. This could be an extra step in an existing workflow Job, or a separate Job. But I'm not ready to commit to this through deprecation just yet. |
@hfhbd To close the loop on this:
Closing this issue as a duplicate. |
setup-gradle
action with dependency-graph
option fails with Gradle Project Isolation
The dependency submission plugin is incompatible with Gradle 8.8-rc-1 due to its
allprojects
usage:Build Scan: https://gradle.com/s/mfuembswpbe7k
PR: hfhbd/adventOfCode#44
The text was updated successfully, but these errors were encountered: