Deprecation warnings should include file and line numbers

(crotwell) #1

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:

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

thanks Philip

(Luke Daley) #2

I’ve raised GRADLE-2770 for this.

(Michael Brand) #3

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

(Luke Daley) #4

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