diff --git a/hibernate-core/hibernate-core.gradle b/hibernate-core/hibernate-core.gradle index 72f3c5c9b1..af0679f456 100644 --- a/hibernate-core/hibernate-core.gradle +++ b/hibernate-core/hibernate-core.gradle @@ -64,7 +64,14 @@ jar { // Temporarily support JTA 1.1 -- Karaf and other frameworks still // use it. Without this, the plugin generates [1.2,2). // build.gradle adds javax.transaction for all modules - 'javax.transaction.xa;version="[1.1,2)"' + 'javax.transaction.xa;version="[1.1,2)"', + // optionals + 'javax.management;resolution:=optional', + 'javax.naming.event;resolution:=optional', + 'javax.naming.spi;resolution:=optional', + 'org.apache.tools.ant;resolution:=optional', + 'org.apache.tools.ant.taskdefs;resolution:=optional', + 'org.apache.tools.ant.types;resolution:=optional' // TODO: Uncomment once EntityManagerFactoryBuilderImpl no longer // uses ClassLoaderServiceImpl.