From e2088f42fe373bec2f974a240c4635234004b8f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Fri, 1 Dec 2023 15:58:06 +0100 Subject: [PATCH] Fix some wonky dependency exclusions in Hibernate ORM/Reactive/Search extensions 1. It makes no sense to exclude a transitive dependency if its version is managed and we re-declare that dependency ourselves two lines below. 2. jakarta.xml.bind-api and jakarta.activation-api are not banned at all, are actually transitive dependencies of hibernate-core and hibernate-jpamodelgen, and have their version managed in our BOM. So there's no need to exclude these transitive dependencies or to declare them when we don't use them directly. 3. jakarta.activation-api is a dependency of jakarta.xml.bind-api, so there's no point excluding jakarta.activation-api if the same module is going to depend on jakarta.xml.bind-api. 4. org.jboss:jandex (old artifact) is no longer a dependency of Hibernate ORM, so we don't need to exclude it. 5. io.smallrye:jandex (new artifact) is never required as a runtime dependency of Hibernate ORM, so it should be excluded directly in the BOM. --- bom/application/pom.xml | 15 ++------------ extensions/hibernate-envers/runtime/pom.xml | 14 ------------- extensions/hibernate-orm/runtime/pom.xml | 20 ------------------- .../runtime/pom.xml | 6 ------ .../hibernate-orm-panache/runtime/pom.xml | 12 ----------- .../runtime/pom.xml | 10 +++------- .../runtime/pom.xml | 12 ----------- 7 files changed, 5 insertions(+), 84 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 1f823f0183616..acda5b5e1160c 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -5010,8 +5010,9 @@ hibernate-core ${hibernate-orm.version} + - org.jboss + io.smallrye jandex @@ -5074,10 +5075,6 @@ ${hibernate-search.version} - - org.jboss - jandex - io.smallrye jandex @@ -5090,10 +5087,6 @@ ${hibernate-search.version} - - org.jboss - jandex - io.smallrye jandex @@ -5106,10 +5099,6 @@ ${hibernate-search.version} - - org.jboss - jandex - io.smallrye jandex diff --git a/extensions/hibernate-envers/runtime/pom.xml b/extensions/hibernate-envers/runtime/pom.xml index 95319d2fa3dab..c985316f7e31b 100644 --- a/extensions/hibernate-envers/runtime/pom.xml +++ b/extensions/hibernate-envers/runtime/pom.xml @@ -18,20 +18,6 @@ org.hibernate.orm hibernate-envers - - - - - org.glassfish.jaxb - jaxb-runtime - - - - - jakarta.activation - jakarta.activation-api - - io.quarkus diff --git a/extensions/hibernate-orm/runtime/pom.xml b/extensions/hibernate-orm/runtime/pom.xml index a9c86cf7c75b2..5db120b401cb0 100644 --- a/extensions/hibernate-orm/runtime/pom.xml +++ b/extensions/hibernate-orm/runtime/pom.xml @@ -59,20 +59,6 @@ org.hibernate.orm hibernate-core - - - org.glassfish.jaxb - jaxb-runtime - - - jakarta.activation - jakarta.activation-api - - - io.smallrye - jandex - - @@ -102,12 +88,6 @@ org.glassfish.jaxb jaxb-runtime - - - jakarta.xml.bind - jakarta.xml.bind-api - - jakarta.xml.bind diff --git a/extensions/hibernate-search-orm-elasticsearch/runtime/pom.xml b/extensions/hibernate-search-orm-elasticsearch/runtime/pom.xml index d9e6721774318..16d8755270292 100644 --- a/extensions/hibernate-search-orm-elasticsearch/runtime/pom.xml +++ b/extensions/hibernate-search-orm-elasticsearch/runtime/pom.xml @@ -32,12 +32,6 @@ org.hibernate.search hibernate-search-mapper-orm - - - jakarta.activation - jakarta.activation-api - - jakarta.persistence diff --git a/extensions/panache/hibernate-orm-panache/runtime/pom.xml b/extensions/panache/hibernate-orm-panache/runtime/pom.xml index 58c4abeaa1bc0..170a7624aadd5 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/pom.xml +++ b/extensions/panache/hibernate-orm-panache/runtime/pom.xml @@ -48,18 +48,6 @@ mockito-core test - - - - jakarta.xml.bind - jakarta.xml.bind-api - provided - - - org.eclipse.angus - angus-activation - provided - diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/pom.xml b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/pom.xml index 0836ad5b199c4..e007a8da611b8 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/pom.xml +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/pom.xml @@ -75,13 +75,9 @@ test - - - jakarta.xml.bind - jakarta.xml.bind-api - provided - - + org.eclipse.angus angus-activation diff --git a/extensions/panache/hibernate-reactive-panache/runtime/pom.xml b/extensions/panache/hibernate-reactive-panache/runtime/pom.xml index 4eded842676f7..7c3a24f07a37d 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/pom.xml +++ b/extensions/panache/hibernate-reactive-panache/runtime/pom.xml @@ -52,18 +52,6 @@ mockito-core test - - - - jakarta.xml.bind - jakarta.xml.bind-api - provided - - - org.eclipse.angus - angus-activation - provided -