gradle-consistent-versions icon indicating copy to clipboard operation
gradle-consistent-versions copied to clipboard

FR: helpful error message when no version in versions.props for dependency

Open iamdanfox opened this issue 6 years ago • 0 comments

What happened?

Workflow:

  1. Add: compile 'one.util:streamex'
  2. Run ./gradlew classes
  3. Received the following error:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':my-project:compileJava'.
> Could not resolve all files for configuration ':my-project:compileClasspath'.
   > Could not find one.util:streamex:.
     Required by:
         project :my-project

What did you want to happen?

Ideally we could have hooked into this failure to provide a helpful error message and point people to the versions.props file.

Extra points if we could give them the exact line, e.g.:

Try adding the following to your versions.props, then running `./gradlew --write-locks`:

    one.util:streamex = 0.6.1

iamdanfox avatar Apr 10 '19 17:04 iamdanfox