I use the following to list and highlight all playback versions in a playback project. Works for a multi-module project.
It was further tested on MacOS Sierra using BSD's default find that it comes with and GNU Grep is installed using brew install grep . The latter is necessary because the next command requires grep, which supports the Perl regular expression (and BSD grep does not).
You can check if grep in your PATH has Perl-regex support by doing this (should show that the -P option is available):
$ ggrep --help | grep -i Perl -P, --perl-regexp PATTERN is a Perl regular expression
(ggrep is GNU grep installed via Homebrew)
Now let's move on to the actual command (note the g grep in the command):
$ find . -name "plugins.sbt" -exec ggrep -PHin --color=always 'com.typesafe.play.*sbt-plugin.*%\s*"\K.*?(?=")' {} \;
which outputs: 
Brief notes on grep options (extracted from grep help):
-P, --perl-regexp PATTERN is a Perl regular expression -i, --ignore-case ignore case distinctions -n, --line-number print line number with output lines -H, --with-filename print file name with output lines
Ashutosh Jindal Jul 17 '18 at 11:35 2018-07-17 11:35
source share