gradle-consistent-versions
gradle-consistent-versions copied to clipboard
FR: helpful error message when no version in versions.props for dependency
What happened?
Workflow:
- Add:
compile 'one.util:streamex' - Run
./gradlew classes - 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