When generating a module descriptor for the HV engine JAR via ModiTect, this is what I get:
module org.hibernate.validator {
requires static hibernate.jpa;
requires static jboss.logging.annotations;
requires static jsoup;
requires com.fasterxml.classmate;
requires java.desktop;
requires java.scripting;
requires transitive java.validation;
requires java.xml;
requires java.xml.bind;
requires javafx.base;
requires java.el;
requires org.jboss.logging;
requires static joda.time;
requires static money.api;
requires static paranamer;
exports org.hibernate.validator;
exports org.hibernate.validator.cfg;
exports org.hibernate.validator.cfg.context;
exports org.hibernate.validator.cfg.defs;
exports org.hibernate.validator.cfg.defs.br;
exports org.hibernate.validator.cfg.defs.pl;
exports org.hibernate.validator.constraints;
exports org.hibernate.validator.constraints.br;
exports org.hibernate.validator.constraints.pl;
exports org.hibernate.validator.constraints.time;
exports org.hibernate.validator.constraintvalidation;
exports org.hibernate.validator.constraintvalidators;
exports org.hibernate.validator.engine;
exports org.hibernate.validator.group;
exports org.hibernate.validator.internal.util.logging to org.jboss.logging;
exports org.hibernate.validator.messageinterpolation;
exports org.hibernate.validator.parameternameprovider;
exports org.hibernate.validator.path;
exports org.hibernate.validator.resourceloading;
exports org.hibernate.validator.spi.cfg;
exports org.hibernate.validator.spi.group;
exports org.hibernate.validator.spi.resourceloading;
provides javax.validation.spi.ValidationProvider with org.hibernate.validator.HibernateValidator;
uses javax.validation.ConstraintValidator;
uses javax.validation.valueextraction.ValueExtractor;
}
This looks good overall, only the dependence to "java.desktop" seems easily avoidable, reducing in smaller Java 9 runtime images (jlink) containing HV. |