it seems that Gradle instruments all dependencies declared in the buildSrc project since 6.5. This breaks classes which check their code signature since those are erased by the instrumentation. I already created a bug report #14130.
My question is: Is there a workaround for this issue? Can I disable the instrumentation? Or is there a preferred way instead of putting the libraries into the buildSrc project? The tasks requiring those dependencies are specific to the repository, so a plug-in does not make much sense.