javagradlebuildinner-classesanonymous-inner-class

Where does gradle build store anonymous inner classes in Java?


I was recently found out that when we compile a java file containing inner classes, separate files are generated for each class.

But in Gradle build only one .class file is generated. Where does gradle store all inner classes?


Solution

  • Gradle delegates compilation to the Java compiler and will thus produce class files according to the specification of the language.

    So inner classes will appear in separate class files.