Enhance Gradle dependency script (sort deterministically and exclude .module files)
In #33932 (closed) we added the
gen_gradle_deps_file.sh to help with the
generation of Gradle dependencies. We should enhance it so it sorts the
entries on different machines in the same way. This makes it easier to
ensure the proposed changes are correct.
Additionally, Gradle module files are not needed. We should ignore them when generating our dependencies list.