Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split annotations and processor in different projects #2

Open
cristcost opened this issue Sep 10, 2015 · 1 comment
Open

Split annotations and processor in different projects #2

cristcost opened this issue Sep 10, 2015 · 1 comment
Labels

Comments

@cristcost
Copy link
Member

Split annotations and processor in different projects, in order to allow managing the propagation of dependencies of the processor (needed only by projects generating code) and the annotations independently

@tbroyer
Copy link

tbroyer commented Sep 14, 2015

You must shade your dependencies in the processor if you don't want to:

  • mess up with the projects' own dependencies (or risk a conflict), when the processor dependency participates in conflict mediation/resolution (e.g. when using Maven, given that you cannot put the processor in its own independent "scope")
  • risk conflicts with other annotation processors
  • risk users depending on the processor's dependencies and failing at runtime when they're absent

That said, having distinct artifacts is a good idea too (see discussion in google/auto#268)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants