boolean (Configuration cfg) { // filter default 'compileClasspath' for slight optimization since it has been already processed as compile dependencies return !cfg.getName().equals("compileClasspath") // since gradle 3.4 'idea' plugin PROVIDED scope.plus contains 'providedCompile' and 'providedRuntime' configurations // see https://github.com/gradle/gradle/commit/c46897ae840c5ebb32946009c83d861ee194ab96#diff-0fa13ec419e839ef2d355b7feb88b815R432 && !providedConfigurations.contains(cfg); }