void (List<String> roots, PathAssembler.LocalDistribution distribution) { super.collectAllowedRoots(roots, distribution); File gradleUserHomeDir = new BuildLayoutParameters().getGradleUserHomeDir(); File generatedGradleJarsDir = new File(gradleUserHomeDir, "caches/" + gradleVersion + "/generated-gradle-jars"); roots.add(generatedGradleJarsDir.getPath()); File gradleDistLibDir = new File(distribution.getDistributionDir(), "gradle-" + gradleVersion + "/lib"); roots.add(gradleDistLibDir.getPath()); }