Deprecation warnings should include file and line numbers

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

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 so adding a url to the corresponding section shouldn’t be too hard.

thanks Philip

I’ve raised GRADLE-2770 for this.

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

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