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

Gradle dependency verification conflicts with using semanticdb plugin #606

Open
keynmol opened this issue Jul 5, 2023 · 1 comment
Open

Comments

@keynmol
Copy link
Contributor

keynmol commented Jul 5, 2023

I tried to index gradle/gradle repo, and while it got further than previous attempts, it raised an interesting problem:

[error] A problem occurred configuring project ':build-logic'.
[error] > Could not determine the dependencies of null.
[error]    > Could not resolve all task dependencies for configuration ':build-logic:classpath'.
[error]       > Could not resolve project :build-logic-commons:gradle-plugin.
[error]         Required by:
[error]             project :build-logic
[error]          > Could not create task ':build-logic-commons:gradle-plugin:compileKotlin'.
[error]             > Dependency verification failed for configuration ':build-logic-commons:gradle-plugin:detachedConfiguration3'
[error]               One artifact failed verification: semanticdb-kotlinc-0.3.0.jar (com.sourcegraph:semanticdb-kotlinc:0.3.0) from repository MavenRepo
[error]               This can indicate that a dependency has been compromised. Please carefully verify the signatures and checksums.

Gradle has strict listing of keys for all the dependencies in https://github.com/gradle/gradle/blob/master/gradle/verification-metadata.xml, but semanticdb-kotlinc is obviously not there.

The public key used to sign the kotlin plugin is actually published: https://keyserver.ubuntu.com/pks/lookup?search=10B04CB7EF0E44A9&fingerprint=on&op=index

Ref: #175 which is no longer valid

@antonsviridov-src
Copy link
Contributor

I think this can be circumvented by using --write-verification-metadata pgp,sha256 flag

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

No branches or pull requests

3 participants