dropbox / dependency-guard

A Gradle plugin that guards against unintentional dependency changes.
Apache License 2.0
390 stars 14 forks source link

Added better error messaging when no classpath configurations are found. #72

Closed handstandsam closed 1 year ago

handstandsam commented 1 year ago

We have legacy code that tried to grab tasks.getByName("dependencyGuard") on the a project. It caused the error message of:

* What went wrong:
A problem occurred evaluating project ':myapp'.
> Failed to apply plugin 'com.dropbox.dependency-guard'.
   > Could not create task ':myapp:dependencyGuard'.
      > Error: No configurations provided to Dependency Guard Plugin.
        Here are some valid configurations you could use.

        dependencyGuard {
        }   

This new messaging is much improved and provides the user with some guidance.