Skip to content

Commit

Permalink
Add property for jandex-maven-plugin version
Browse files Browse the repository at this point in the history
  • Loading branch information
nastra committed Aug 17, 2021
1 parent 931935e commit bbf5493
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 11 deletions.
5 changes: 4 additions & 1 deletion build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
<version.exec.plugin>3.0.0</version.exec.plugin>
<failsafe-plugin.version>${version.surefire.plugin}</failsafe-plugin.version>

<!-- jandex maven plugin version -->
<jandex-maven-plugin.version>1.1.0</jandex-maven-plugin.version>

<!-- These properties are needed in order for them to be resolvable by the documentation -->
<!-- The Graal version we suggest using in documentation - as that's
what we work with by self downloading it: -->
Expand Down Expand Up @@ -578,7 +581,7 @@
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>1.1.0</version>
<version>${jandex-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
Expand Down
2 changes: 2 additions & 0 deletions docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2756,6 +2756,8 @@
<gradle-version>${gradle-wrapper.version}</gradle-version>
<keycloak-docker-image>${keycloak.docker.image}</keycloak-docker-image>

<jandex-maven-plugin-version>${jandex-maven-plugin.version}</jandex-maven-plugin-version>

<grpc-version>${grpc.version}</grpc-version>
<protoc-version>${protoc.version}</protoc-version>
<elasticsearch-version>${elasticsearch-server.version}</elasticsearch-version>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/cdi-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ NOTE: Quarkus extensions may declare additional discovery rules. For example, `@
A dependency with a Jandex index is automatically scanned for beans.
To generate the index just add the following to your `pom.xml`:

[source,xml]
[source,xml,subs="attributes+"]
----
<build>
<plugins>
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>1.1.0</version>
<version>{jandex-maven-plugin-version}</version>
<executions>
<execution>
<id>make-index</id>
Expand Down
5 changes: 2 additions & 3 deletions docs/src/main/asciidoc/grpc-getting-started.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,14 @@ IMPORTANT: When using `protobuf-maven-plugin`, instead of the `quarkus-maven-plu
When gRPC classes are in a dependency of the application, then the dependency needs a Jandex index so that changes to gRPC/proto definitions are picked up properly.
The `jandex-maven-plugin` can be used to create a Jandex index. More information on this topic can be found in the link:cdi-reference#bean_discovery[Bean Discovery] section of the CDI guide.


[source,xml]
[source,xml,subs="attributes+"]
----
<build>
<plugins>
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>1.1.0</version>
<version>{jandex-maven-plugin-version}</version>
<executions>
<execution>
<id>make-index</id>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/maven-tooling.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -545,14 +545,14 @@ By default, Quarkus will not discover CDI beans inside another module.
The best way to enable CDI bean discovery for a module in a multi-module project would be to include the `jandex-maven-plugin`,
unless it is the main application module already configured with the quarkus-maven-plugin, in which case it will indexed automatically.

[source,xml]
[source,xml,subs="attributes+"]
----
<build>
<plugins>
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>1.1.0</version>
<version>{jandex-maven-plugin-version}</version>
<executions>
<execution>
<id>make-index</id>
Expand Down
2 changes: 1 addition & 1 deletion independent-projects/tools/artifact-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>1.1.0</version>
<version>${jandex-maven-plugin.version}</version>
<executions>
<execution>
<id>make-index</id>
Expand Down
1 change: 1 addition & 0 deletions independent-projects/tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<maven-model-helper.version>18</maven-model-helper.version>
<commons-io.version>2.11.0</commons-io.version>
<smallrye-common.version>1.6.0</smallrye-common.version>
<jandex-maven-plugin.version>1.1.0</jandex-maven-plugin.version>
</properties>
<modules>
<module>artifact-api</module>
Expand Down
2 changes: 1 addition & 1 deletion independent-projects/tools/registry-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>1.1.0</version>
<version>${jandex-maven-plugin.version}</version>
<executions>
<execution>
<id>make-index</id>
Expand Down
2 changes: 1 addition & 1 deletion tcks/microprofile-rest-client-reactive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>1.1.0</version>
<version>${jandex-maven-plugin.version}</version>
<executions>
<execution>
<id>make-index</id>
Expand Down

0 comments on commit bbf5493

Please sign in to comment.