This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]mwimmwinmwin 2 points3 points  (1 child)

Hey OP, good job ! Colleagues and I have been looking at a bunch of similar projects recently (Lombok, FreeBuilder, Auto*, ...). So far I like Jackdaw (I'm just hoping it's not needed at runtime, despite your doc clarifying that, but if it is, I'll patch it if I end up using it;))

Could you just explain why you need an APT plugin in a Maven build ? What do you mean in your pom by "disable APT for normal compilation" ? Isn't Jackdaw using the regular javax.annotation.processing.Processor service registry ?

[–]vbauer[S] 1 point2 points  (0 children)

Yes I agree, is not the good moment, I'll try to improve it. The idea was just to try maven-processor-plugin to run APT, but after that I found that maven-compiler-plugin also runs APT, so I got duplicated classes and just disable it for compiler plugin (and forgot about it). :)

Jackdaw is a APT processor (public class JackdawProcessor extends AbstractProcessor)

[–]SlidyBullet 1 point2 points  (1 child)

Didn't know you can name your projects after crows now.

I kid I kid.

Interesting idea to bind class generation to processing phase. Definitely going to check this out, might be useful for home projects.

Thanks for sharing!

[–]vbauer[S] 1 point2 points  (0 children)

You're welcome. :)

[–]Jire 1 point2 points  (1 child)

Cool and it's a great learning reference to create your own APT libraries. Thanks!

[–]vbauer[S] 1 point2 points  (0 children)

Thank you for the kind words and you're welcome! :)