Skip to content

Commit

Permalink
HSEARCH-4688 Upgrade to Jandex 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Jul 3, 2023
1 parent f6d2ec8 commit 2c4aef0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion integrationtest/showcase/library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<build>
<plugins>
<plugin>
<groupId>org.jboss.jandex</groupId>
<groupId>io.smallrye</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<executions>
<execution>
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,8 @@
when the versions start diverging, thanks to the maven-enforcer-plugin
and to our own explicit dependencies in the relevant artifacts.
-->
<version.org.jboss.jandex>2.4.2.Final</version.org.jboss.jandex>
<version.org.hibernate.commons.annotations>${version.org.hibernate.commons.annotations.orm6}</version.org.hibernate.commons.annotations>
<version.net.bytebuddy>${version.net.bytebuddy.orm6}</version.net.bytebuddy>
<version.io.smallrye.jandex>3.0.0</version.io.smallrye.jandex>

<!-- >>> ORM 6 with Jakarta Persistence -->
<version.org.hibernate.orm>6.2.0.CR2</version.org.hibernate.orm>
Expand Down Expand Up @@ -365,7 +363,7 @@
<version.exec.plugin>3.1.0</version.exec.plugin>
<version.forbiddenapis.plugin>3.4</version.forbiddenapis.plugin>
<version.install.plugin>3.1.1</version.install.plugin>
<version.jandex.plugin>1.2.3</version.jandex.plugin>
<version.jandex.plugin>3.0.3</version.jandex.plugin>
<version.japicmp.plugin>0.17.2</version.japicmp.plugin>
<version.jar.plugin>3.3.0</version.jar.plugin>
<version.javadoc.plugin>3.5.0</version.javadoc.plugin>
Expand Down Expand Up @@ -1580,6 +1578,8 @@
<exvlude>javax.enterprise:cdi-api</exvlude>
<exclude>javax.xml.bind:jaxb-api</exclude>
<exvlude>javax.activation:javax.activation-api</exvlude>
<!-- We use Jandex 3 instead: io.smallrye:jandex, io.smallrye:jandex-maven-plugin -->
<exclude>org.jboss:jandex*</exclude>
</excludes>
</bannedDependencies>
</rules>
Expand Down Expand Up @@ -2003,7 +2003,7 @@
<version>1.0.2</version>
</plugin>
<plugin>
<groupId>org.jboss.jandex</groupId>
<groupId>io.smallrye</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>${version.jandex.plugin}</version>
<executions>
Expand Down
4 changes: 2 additions & 2 deletions util/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
<artifactId>jboss-logging-annotations</artifactId>
</dependency>
<dependency>
<groupId>org.jboss</groupId>
<groupId>io.smallrye</groupId>
<artifactId>jandex</artifactId>
<!-- DO NOT REMOVE and DO NOT MANAGE the version of this dependency. See the version property declaration. -->
<version>${version.org.jboss.jandex}</version>
<version>${version.io.smallrye.jandex}</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static Set<DotName> 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() );
Expand Down
6 changes: 3 additions & 3 deletions util/internal/test/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>org.jboss</groupId>
<groupId>io.smallrye</groupId>
<artifactId>jandex</artifactId>
<!-- DO NOT MANAGE this dependency. See the version property declaration. -->
<version>${version.org.jboss.jandex}</version>
<version>${version.io.smallrye.jandex}</version>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
Expand All @@ -103,7 +103,7 @@
</plugin>
<!-- This is only necessary to implement a few tests in other Maven modules; see JandexUtilsTest -->
<plugin>
<groupId>org.jboss.jandex</groupId>
<groupId>io.smallrye</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<executions>
<execution>
Expand Down

0 comments on commit 2c4aef0

Please sign in to comment.