From bbf5493e96f8d4f248ebc2e9a399dea91dac5e3a Mon Sep 17 00:00:00 2001 From: Eduard Tudenhoefner Date: Tue, 17 Aug 2021 11:36:59 +0200 Subject: [PATCH] Add property for jandex-maven-plugin version --- build-parent/pom.xml | 5 ++++- docs/pom.xml | 2 ++ docs/src/main/asciidoc/cdi-reference.adoc | 4 ++-- docs/src/main/asciidoc/grpc-getting-started.adoc | 5 ++--- docs/src/main/asciidoc/maven-tooling.adoc | 4 ++-- independent-projects/tools/artifact-api/pom.xml | 2 +- independent-projects/tools/pom.xml | 1 + independent-projects/tools/registry-client/pom.xml | 2 +- tcks/microprofile-rest-client-reactive/pom.xml | 2 +- 9 files changed, 16 insertions(+), 11 deletions(-) diff --git a/build-parent/pom.xml b/build-parent/pom.xml index 2aa43cdeb295f6..cb55cfa616bfdf 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -33,6 +33,9 @@ 3.0.0 ${version.surefire.plugin} + + 1.1.0 + @@ -578,7 +581,7 @@ org.jboss.jandex jandex-maven-plugin - 1.1.0 + ${jandex-maven-plugin.version} net.revelc.code.formatter diff --git a/docs/pom.xml b/docs/pom.xml index 73c5b71a32fa76..e5e8075f2027f8 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -2756,6 +2756,8 @@ ${gradle-wrapper.version} ${keycloak.docker.image} + ${jandex-maven-plugin.version} + ${grpc.version} ${protoc.version} ${elasticsearch-server.version} diff --git a/docs/src/main/asciidoc/cdi-reference.adoc b/docs/src/main/asciidoc/cdi-reference.adoc index a76be0370e810e..7867a064bcd99c 100644 --- a/docs/src/main/asciidoc/cdi-reference.adoc +++ b/docs/src/main/asciidoc/cdi-reference.adoc @@ -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+"] ---- org.jboss.jandex jandex-maven-plugin - 1.1.0 + {jandex-maven-plugin-version} make-index diff --git a/docs/src/main/asciidoc/grpc-getting-started.adoc b/docs/src/main/asciidoc/grpc-getting-started.adoc index 78cdf7535c8e97..b1820b682953a2 100644 --- a/docs/src/main/asciidoc/grpc-getting-started.adoc +++ b/docs/src/main/asciidoc/grpc-getting-started.adoc @@ -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+"] ---- org.jboss.jandex jandex-maven-plugin - 1.1.0 + {jandex-maven-plugin-version} make-index diff --git a/docs/src/main/asciidoc/maven-tooling.adoc b/docs/src/main/asciidoc/maven-tooling.adoc index 06ae7d6a4b94b8..9d01b8522cab06 100644 --- a/docs/src/main/asciidoc/maven-tooling.adoc +++ b/docs/src/main/asciidoc/maven-tooling.adoc @@ -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+"] ---- org.jboss.jandex jandex-maven-plugin - 1.1.0 + {jandex-maven-plugin-version} make-index diff --git a/independent-projects/tools/artifact-api/pom.xml b/independent-projects/tools/artifact-api/pom.xml index 92fafdbce73d45..128da3c2ca214e 100644 --- a/independent-projects/tools/artifact-api/pom.xml +++ b/independent-projects/tools/artifact-api/pom.xml @@ -18,7 +18,7 @@ org.jboss.jandex jandex-maven-plugin - 1.1.0 + ${jandex-maven-plugin.version} make-index diff --git a/independent-projects/tools/pom.xml b/independent-projects/tools/pom.xml index 916222c0122bfa..16d1a2bd8f680f 100644 --- a/independent-projects/tools/pom.xml +++ b/independent-projects/tools/pom.xml @@ -55,6 +55,7 @@ 18 2.11.0 1.6.0 + 1.1.0 artifact-api diff --git a/independent-projects/tools/registry-client/pom.xml b/independent-projects/tools/registry-client/pom.xml index 22f9694785d7b7..2a98b1c26081ed 100644 --- a/independent-projects/tools/registry-client/pom.xml +++ b/independent-projects/tools/registry-client/pom.xml @@ -50,7 +50,7 @@ org.jboss.jandex jandex-maven-plugin - 1.1.0 + ${jandex-maven-plugin.version} make-index diff --git a/tcks/microprofile-rest-client-reactive/pom.xml b/tcks/microprofile-rest-client-reactive/pom.xml index 84a10536fb84e0..182fa8897142c6 100644 --- a/tcks/microprofile-rest-client-reactive/pom.xml +++ b/tcks/microprofile-rest-client-reactive/pom.xml @@ -88,7 +88,7 @@ org.jboss.jandex jandex-maven-plugin - 1.1.0 + ${jandex-maven-plugin.version} make-index