Skip to content

Instantly share code, notes, and snippets.

@freitzzz
Last active February 15, 2024 11:31
Show Gist options
  • Save freitzzz/8d8a994a17560d00a032e310bdec7bd3 to your computer and use it in GitHub Desktop.
Save freitzzz/8d8a994a17560d00a032e310bdec7bd3 to your computer and use it in GitHub Desktop.
(Gradle) List all dependencies Java version
tmpd=$(mktemp -d); (cd $tmpd; (find ~/.gradle/caches/transforms-3/ -name "*.jar" -print0 | xargs -0 -I F cp F .); (for i in *.jar; do unzip "$i" -d "${i%%.jar}"; done); (find . -name "*.class" -print0 | xargs -0 file > ~/Desktop/classes.txt); cd -; rm -rf $tmpd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment