From fa0c31c05533d17854ca5b335ea54c9ab9200fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Mon, 5 Sep 2022 16:20:44 +0200 Subject: [PATCH] HSEARCH-4688 Upgrade to Jandex 3.0 --- integrationtest/showcase/library/pom.xml | 2 +- orm6/build/parents/integrationtest/pom.xml | 2 +- orm6/build/parents/internal/pom.xml | 2 +- orm6/build/parents/public/pom.xml | 2 +- pom.xml | 13 +++++++++---- util/common/pom.xml | 4 ++-- .../search/util/common/jar/impl/JandexUtils.java | 2 +- util/internal/test/common/pom.xml | 6 +++--- 8 files changed, 19 insertions(+), 14 deletions(-) diff --git a/integrationtest/showcase/library/pom.xml b/integrationtest/showcase/library/pom.xml index 7f95d8ca09a..75c9cb93aa0 100644 --- a/integrationtest/showcase/library/pom.xml +++ b/integrationtest/showcase/library/pom.xml @@ -123,7 +123,7 @@ - org.jboss.jandex + io.smallrye jandex-maven-plugin diff --git a/orm6/build/parents/integrationtest/pom.xml b/orm6/build/parents/integrationtest/pom.xml index f04ff2319dc..4d2b57ba56c 100644 --- a/orm6/build/parents/integrationtest/pom.xml +++ b/orm6/build/parents/integrationtest/pom.xml @@ -67,7 +67,7 @@ (which, unfortunately, might be different from the version used in ORM 5.x on which our utils are aligned) --> - org.jboss + io.smallrye jandex diff --git a/orm6/build/parents/internal/pom.xml b/orm6/build/parents/internal/pom.xml index a0862decd7d..c0e704ca4a2 100644 --- a/orm6/build/parents/internal/pom.xml +++ b/orm6/build/parents/internal/pom.xml @@ -67,7 +67,7 @@ (which, unfortunately, might be different from the version used in ORM 5.x on which our utils are aligned) --> - org.jboss + io.smallrye jandex diff --git a/orm6/build/parents/public/pom.xml b/orm6/build/parents/public/pom.xml index a8b22a1897a..a6f5358d8d1 100644 --- a/orm6/build/parents/public/pom.xml +++ b/orm6/build/parents/public/pom.xml @@ -67,7 +67,7 @@ (which, unfortunately, might be different from the version used in ORM 5.x on which our utils are aligned) --> - org.jboss + io.smallrye jandex diff --git a/pom.xml b/pom.xml index e0dd8a018f7..f664760be6a 100644 --- a/pom.xml +++ b/pom.xml @@ -257,10 +257,9 @@ when the versions start diverging, thanks to the maven-enforcer-plugin and to our own explicit dependencies in the relevant artifacts. --> - 2.4.2.Final ${version.org.hibernate.commons.annotations.orm6} ${version.net.bytebuddy.orm6} - 3.0.0 + 3.0.3 6.2.0-SNAPSHOT @@ -355,7 +354,7 @@ 3.3.0 3.1.0 0.7.7 - 1.2.3 + 3.0.3 0.17.1 3.3.0 3.4.1 @@ -1572,6 +1571,12 @@ ${maven.min.version} + + + + org.jboss:jandex* + + @@ -2023,7 +2028,7 @@ 1.0.2 - org.jboss.jandex + io.smallrye jandex-maven-plugin ${version.jandex.plugin} diff --git a/util/common/pom.xml b/util/common/pom.xml index 02a7a984719..b9f951a0fca 100644 --- a/util/common/pom.xml +++ b/util/common/pom.xml @@ -26,10 +26,10 @@ jboss-logging-annotations - org.jboss + io.smallrye jandex - ${version.org.jboss.jandex} + ${version.io.smallrye.jandex} diff --git a/util/common/src/main/java/org/hibernate/search/util/common/jar/impl/JandexUtils.java b/util/common/src/main/java/org/hibernate/search/util/common/jar/impl/JandexUtils.java index ef042aa3e54..07dae6dd441 100644 --- a/util/common/src/main/java/org/hibernate/search/util/common/jar/impl/JandexUtils.java +++ b/util/common/src/main/java/org/hibernate/search/util/common/jar/impl/JandexUtils.java @@ -70,7 +70,7 @@ public static Set findAnnotatedAnnotationsAndContaining(IndexView index for ( AnnotationInstance retentionAnnotation : index.getAnnotations( metaAnnotation ) ) { ClassInfo annotation = retentionAnnotation.target().asClass(); annotations.add( annotation.name() ); - AnnotationInstance repeatable = annotation.classAnnotation( REPEATABLE ); + AnnotationInstance repeatable = annotation.declaredAnnotation( REPEATABLE ); if ( repeatable != null ) { Type containing = repeatable.value().asClass(); annotations.add( containing.name() ); diff --git a/util/internal/test/common/pom.xml b/util/internal/test/common/pom.xml index 564b6702dea..6ab5a419d8c 100644 --- a/util/internal/test/common/pom.xml +++ b/util/internal/test/common/pom.xml @@ -76,10 +76,10 @@ guava - org.jboss + io.smallrye jandex - ${version.org.jboss.jandex} + ${version.io.smallrye.jandex} net.bytebuddy @@ -97,7 +97,7 @@ - org.jboss.jandex + io.smallrye jandex-maven-plugin