-
Notifications
You must be signed in to change notification settings - Fork 201
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
Review/support upcoming dependency verification in Gradle 6.2 #366
Comments
Thanks for the heads up. If we use Groovy's |
@vlsi I was looking at this now that 6.2 RC1 is released - did you mean this behavior would be automatically enabled or that a user may enable it manually and we need to account for it? I added |
Looking more at the docs - I guess the test case needs to have the XML file included for any behavior change. Let me see if I can trigger it |
@anuraaga , it is not enabled by default. For instance, if you launch Gradle with |
I tried this with 6.2 and it fails when a
|
@ben-manes Can you confirm just normal I can't repro in the integration test or https://github.com/anuraaga/gradle-scratch even with released 6.2 so if you can give an example would be awesome. |
Yes, that fails too. See the attached project. |
From my understanding, it's ok for |
Oh that’s reasonable. I didn’t think that far ahead and did not try with proper checksums in place. I don’t strongly feel one way or the other, so if we can do nothing that’s probably preferable. |
Frankly speaking, I expected that Gradle would deny resolution of "unknown/untrusted" metadata and artifacts. However, if it works, I'm ok with that. I don't have much time to investigate why it is not really blocking gradle-versions-plugin :-/ |
Confirmed that the task passes with my sample after generating the checksum file,
So let's close this until it breaks on someone. When it does we'll add |
Gradle 6.2 will have integrated dependency verification for integrity and provenance.
Issue: gradle/gradle#10443
Documentation PR: gradle/gradle#11755
Note: as Gradle would switch to "verify all resolutions", it would effectively prevent the operation of
gradle-versions-plugin
.It looks like there will be
ResolutionStrategy#disableDependencyVerification()
API to temporary disable the verification.Do you think that would be OK for G-V-P?
The text was updated successfully, but these errors were encountered: