# Deprecation warnings should include file and line numbers

**URL:** <https://discuss.gradle.org/t/deprecation-warnings-should-include-file-and-line-numbers/441>\
**Category:** Old Forum Archive\
**Created:** [May 7, 2013, 1:45pm UTC](https://discuss.gradle.org/t/deprecation-warnings-should-include-file-and-line-numbers/441 "2013-05-07T13:45:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip\_Crotwell](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@Philip\_Crotwell](https://discuss.gradle.org/u/Philip_Crotwell)\
**Post date:** [May 7, 2013, 1:45pm UTC](https://discuss.gradle.org/t/deprecation-warnings-should-include-file-and-line-numbers/441/1 "2013-05-07T13:45:00Z")

</div>

In upgrading to gradle 1.6, I see there are new deprecation warnings, so I need to go into my scripts and improve things. It would really make it easier if the warning message included the file and line number where this occurred. Perhaps also the plugin if there was one. Otherwise it can be hard to tell if something needs to be changed in my gradle scripts or if the problem is in a plugin that I happen to be using. Not sure how hard this would be, but it would be very nice to have.

I did see this which is related: [http://forums.gradle.org/gradle/topics/how\_can\_i\_find\_the\_usage\_of\_deprecated\_gradle\_apis](http://forums.gradle.org/gradle/topics/how_can_i_find_the_usage_of_deprecated_gradle_apis)

Also, while it seems you all have done a good job with making the deprecation messages meaningful, it might be nice to provide a URL for more information. You already have more information in the release notes, like here: [http://www.gradle.org/docs/current/release-notes#deprecations](http://www.gradle.org/docs/current/release-notes#deprecations) so adding a url to the corresponding section shouldn’t be too hard.

thanks Philip

---

<div class="post-metadata">

**Author:** ![luke\_daley](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/luke_daley/32/9890_2.png) [@luke\_daley](https://discuss.gradle.org/u/luke_daley)\
**Post date:** [May 7, 2013, 4:02pm UTC](https://discuss.gradle.org/t/deprecation-warnings-should-include-file-and-line-numbers/441/2 "2013-05-07T16:02:00Z")

</div>

I’ve raised GRADLE-2770 for this.

---

<div class="post-metadata">

**Author:** ![mzbrand](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mzbrand](https://discuss.gradle.org/u/mzbrand)\
**Post date:** [May 7, 2013, 8:37pm UTC](https://discuss.gradle.org/t/deprecation-warnings-should-include-file-and-line-numbers/441/3 "2013-05-07T20:37:00Z")

</div>

Thanks, Luke. This may seem trivial, but it’s a constant frustration. I’ve voted up the issue.

---

<div class="post-metadata">

**Author:** ![luke\_daley](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/luke_daley/32/9890_2.png) [@luke\_daley](https://discuss.gradle.org/u/luke_daley)\
**Post date:** [May 7, 2013, 9:42pm UTC](https://discuss.gradle.org/t/deprecation-warnings-should-include-file-and-line-numbers/441/4 "2013-05-07T21:42:00Z")

</div>

It’s completely understandable, and we’ve been wanting to do this for a while.
