Closed symphony-youri closed 1 year ago
A Gradle plugin shouldn't define a repository internally. That's bad practice. It's up to the consumer to define repositories. The reason it is bad practice is the fact that hard-coding a repository in the plugin code will easily break consumers that don't have access to it. For example, some companies do not allow access to public repositories (e.g. Maven Central) and require the use of a proxy repository e.g. as set up in Artifactory.
Related https://github.com/snyk/gradle-plugin/issues/23 because org.json:json:20200518 has a vulnerability
Using the Snyk Gradle plugin on a project without dependencies being declared in the root project seems to cause the plugin to fail.
As a workaround, I just added this block at the root of my project (otherwise the repositories block is just declared for subprojects):
Detailed output: