# Locating source of plus(Iterable\<FileCollection\>) deprecation log

**URL:** <https://discuss.gradle.org/t/locating-source-of-plus-iterable-filecollection-deprecation-log/12474>\
**Category:** Help/Discuss\
**Created:** [October 27, 2015, 9:14pm UTC](https://discuss.gradle.org/t/locating-source-of-plus-iterable-filecollection-deprecation-log/12474 "2015-10-27T21:14:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Elliot](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/mark_elliot/32/844_2.png) [@Mark\_Elliot](https://discuss.gradle.org/u/Mark_Elliot)\
**Post date:** [October 27, 2015, 9:14pm UTC](https://discuss.gradle.org/t/locating-source-of-plus-iterable-filecollection-deprecation-log/12474/1 "2015-10-27T21:14:34Z")

</div>

When running my build I observe the following log statement:

> The plus(Iterable) method and using the ‘+’ operator in conjunction with an Iterable object have been deprecated and are scheduled to be removed in 3.0. Please use the plus(FileCollection) method or the ‘+’ operator with a FileCollection object instead.

Which seems to be coming from here: [https://github.com/gradle/gradle/blob/master/subprojects/core/src/main/groovy/org/gradle/api/internal/file/AbstractFileCollection.java#L81](https://github.com/gradle/gradle/blob/master/subprojects/core/src/main/groovy/org/gradle/api/internal/file/AbstractFileCollection.java#L81)

Unfortunately, there’s no file/line number indication of where this is coming from. I think it’s likely coming from a plugin as a grep through my build files doesn’t show any use of this method.

How can I track down the source of the log line so I can fix it locally or submit a fix to the problematic plugin?

---

<div class="post-metadata">

**Author:** ![sterling](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/sterling/32/5395_2.png) [@sterling](https://discuss.gradle.org/u/sterling)\
**Post date:** [October 29, 2015, 5:11pm UTC](https://discuss.gradle.org/t/locating-source-of-plus-iterable-filecollection-deprecation-log/12474/2 "2015-10-29T17:11:18Z")

</div>

The line before that warning should have a location.

You can also run with `-Dorg.gradle.deprecation.trace=true`, which will produce a stacktrace.
