Recently I looked into one of the Gradle built jars of my projects and found that the jar contained classes from some external dependencies. Looking into the build/classes directory, I saw that it contained extracted classes from those external dependencies. Curiously, these extracted classes can also be found in some other projects build/classes directories, and they come only from two of a multitude of dependent jars.
One of the exploded jars is log4j.jar, and this dependency I declared globally in my root build.gradle in the subproject definition. So, while this dependency is declared for all subprojects, I can find the exploded classes from it only in some subprojects (24 of 89 projects) build/classes directory. Another curious thing: not all classes are exploded and their count is different in different the build/classes directories.
I cannot figure out what might cause this behavior. If I call gradle with the --debug option, I cannot discover anything what might be an explanation. Any ideas?
(btw: I’rm running Gradle 1.11)