Exclude certain java files from error prone during build

453 views
Skip to first unread message

srinivasa bs

unread,
Jul 3, 2020, 8:11:32 AM7/3/20
to error-prone-discuss
When i do gradle build of application using Error prone, Please let me know how shall I exclude few filenames from Error prone.

Thomas Broyer

unread,
Jul 3, 2020, 12:53:26 PM7/3/20
to error-prone-discuss


On Friday, July 3, 2020 at 2:11:32 PM UTC+2, srinivasa bs wrote:
When i do gradle build of application using Error prone, Please let me know how shall I exclude few filenames from Error prone.

Use -XepExcludedPaths: (see https://errorprone.info/docs/flags)
or if you're using the net.ltgt.errorprone plugin in Gradle, that's options.errorprone.excludedPaths (https://github.com/tbroyer/gradle-errorprone-plugin/blob/v1.2.1/README.md#configuration)

bdvts.s...@gmail.com

unread,
Jul 4, 2020, 1:07:41 AM7/4/20
to error-prone-discuss
Thanks for details,   -XepExcludedPaths works for package level but i want to exclude for specific filename. 

Thomas Broyer

unread,
Jul 4, 2020, 6:05:01 AM7/4/20
to error-prone-discuss

bdvts.s...@gmail.com

unread,
Jul 4, 2020, 10:14:13 AM7/4/20
to error-prone-discuss
Thanks so much, I could able to exclude file name from build now.
Reply all
Reply to author
Forward
0 new messages