Created
January 12, 2021 22:32
-
-
Save autonomousapps/2484e5db84dee2a1eff44681dd4a8ee6 to your computer and use it in GitHub Desktop.
Print Gradle's class loader hierarchy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/build.gradle | |
def printClassLoaders(classLoader) { | |
while (classLoader != null) { | |
println(classLoader) | |
classLoader = classLoader.parent | |
} | |
} | |
class A { | |
} | |
printClassLoaders(A.classLoader) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment