[hibernate-dev] Shaded build for the HV annotation processor

Gunnar Morling gunnar.morling at googlemail.com
Sat Mar 19 07:10:11 EDT 2011


Hi guys,

I just played around with the Hibernate Validator AP in my IDE, and it's
really awesome to see all these constraint checks in action.

There is just one thing which I think we can improve: right now the user has
to to add three different JARs to the annotation processor path:

* the AP itself
* validation-api.jar (some types such as @Valid are imported in the AP)
* and also hibernate-validator.jar (due to HV-436 and in the future HV-270
where types from HV core are used in the AP).

I think that's pretty cumbersome for the users, so I thought about shading
HV core and the validation API into the AP JAR. That way only one single JAR
must be put onto the AP class path. I'm generally no big fan of uber-jars,
but I think in this special case this makes sense pretty much.

WDYT?

Gunnar



More information about the hibernate-dev mailing list