HHH-12367 Create a separate JBoss Module for Hibernate Envers

This commit is contained in:
Sanne Grinovero 2018-03-06 23:32:39 +00:00
parent dc272128a1
commit 1272403369
5 changed files with 48 additions and 4 deletions

View File

@ -93,10 +93,11 @@ provision {
artifactId = 'javax.persistence-api'
version = '2.2'
}
//TODO: explore overriding any other library we might need?
/**TODO: explore overriding any other library we might need?
Example: (not currently necessary)
override( 'org.hibernate.common:hibernate-commons-annotations' ) {
version = '5.0.2.Final'
}
}*/
variables['wildfly.version'] = project.wildflyVersion
variables['hibernate-orm.version'] = rootProject.hibernateVersion
}

View File

@ -9,11 +9,13 @@
<properties>
<property name="jboss.api" value="deprecated"/>
<!-- This module is using the old name. Please use "org.hibernate.orm" in the future.-->
<!-- This module is using the old name. Please use "org.hibernate.orm" in the future,
and declare the dependency on "org.hibernate.envers" explicitly as well if it's used -->
</properties>
<dependencies>
<module name="org.hibernate.orm" services="import" export="true" slot="${minorSlot}"/>
<module name="org.hibernate.envers" services="import" export="true" slot="${minorSlot}"/>
</dependencies>
</module>

View File

@ -8,10 +8,10 @@
<module xmlns="urn:jboss:module:1.3" name="org.hibernate.orm" slot="${slot}">
<resources>
<artifact name="${org.hibernate:hibernate-core}"/>
<artifact name="${org.hibernate:hibernate-envers}"/>
</resources>
<dependencies>
<module name="org.hibernate.envers" slot="${slot}" services="import" optional="true"/>
<module name="com.fasterxml.classmate"/>
<module name="javax.api"/>
<module name="javax.annotation.api"/>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Hibernate, Relational Persistence for Idiomatic Java
~
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
-->
<module-alias xmlns="urn:jboss:module:1.3"
name="org.hibernate.envers" slot="${minorSlot}"
target-name="org.hibernate.envers" target-slot="${slot}"
/>

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Hibernate, Relational Persistence for Idiomatic Java
~
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
-->
<module xmlns="urn:jboss:module:1.3" name="org.hibernate.envers" slot="${slot}">
<resources>
<artifact name="${org.hibernate:hibernate-envers}"/>
</resources>
<dependencies>
<module name="org.hibernate.orm" slot="${slot}"/>
<module name="com.fasterxml.classmate"/>
<module name="javax.api"/>
<module name="javax.annotation.api"/>
<module name="javax.enterprise.api"/>
<module name="javax.persistence.api"/>
<module name="javax.transaction.api"/>
<module name="javax.xml.bind.api"/>
<module name="org.antlr"/>
<module name="org.dom4j"/>
<module name="org.jboss.jandex"/>
<module name="org.jboss.logging"/>
<module name="org.javassist" export="true"/>
<module name="org.hibernate.commons-annotations"/>
<module name="net.bytebuddy" slot="${bytebuddySlot}" />
</dependencies>
</module>