Example of problem with annotation processors that reference external dependencies.

Review Request #2777 - Created Sept. 5, 2015 and submitted

Information
Eric Ayers
pants
zundel/annotation-processor-with-thirdparty-dep
1299
76e1794...
Reviewers
pants-reviews
gmalmquist, jsirois, stuhood

Exercises issue reported in https://github.com/pantsbuild/pants/pull/1299.

The issue reported that when an annotation processor depended on a 3rdparty library that was on the classpath of one target but not another, compiling the second target would inadvertently run the first annotation processor which would fail with a missing symbol.

I used to see this crop up and told users to run ./pants clean all. I haven't noticed this problem in our internal repo lately.

At one time, this test demonstrated a bug in pants, but now this use case works. I should have added it a long time ago with pytest.mark.xfail(), but I didn't.

CI running at https://travis-ci.org/pantsbuild/pants/builds/78899044

Eric Ayers
Garrett Malmquist
John Sirois
Eric Ayers
Review request changed

Status: Closed (submitted)

Change Summary:

Thanks John & Garrett. Commit 94c1553

Loading...