Gradle Issue with Worker Leaking Classes The Gradle worker is leaking classes that it shouldn't be (such as Guava). This project reproduces the issue. To validate this: Clone this repo. Run ./gradlew guava. It will output that Guava was found on the classpath.