Skip to content

Instantly share code, notes, and snippets.

@johnjohndoe
Last active November 26, 2019 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnjohndoe/002ad1c682bdadc05f13aa43fa317c64 to your computer and use it in GitHub Desktop.
Save johnjohndoe/002ad1c682bdadc05f13aa43fa317c64 to your computer and use it in GitHub Desktop.
Search for the name of a dependency which has the version "0.5.0" parsing the output of gradle-versions-plugin

Tools

Shell commands

$ ./gradlew dependencyUpdates -DoutputFormatter=json
Generated report file build/dependencyUpdates/report.json
$ cat build/dependencyUpdates/report.json | jq '.outdated.dependencies | map(select(any(.version; contains("0.5.0"))))[].name'
awesome-library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment