Skip to content

Commit

Permalink
Update jandex gradle plugin version in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
glefloch committed Jul 27, 2022
1 parent 60bee97 commit 46900f6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
1 change: 1 addition & 0 deletions build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

<!-- jandex maven plugin version -->
<jandex-maven-plugin.version>1.2.3</jandex-maven-plugin.version>
<jandex-gradle-plugin.version>0.13.0</jandex-gradle-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
Expand Down
1 change: 1 addition & 0 deletions docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2855,6 +2855,7 @@
<keycloak-docker-image>${keycloak.docker.image}</keycloak-docker-image>

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

<grpc-version>${grpc.version}</grpc-version>
Expand Down
29 changes: 25 additions & 4 deletions docs/src/main/asciidoc/cdi-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ NOTE: Quarkus extensions may declare additional discovery rules. For example, `@
=== How to Generate a Jandex Index
A dependency with a Jandex index is automatically scanned for beans.
To generate the index just add the following to your `pom.xml`:
To generate the index just add the following plugin to your build file :
[role="primary asciidoc-tabs-sync-maven"]
.Maven
****
[source,xml,subs="attributes+"]
----
<build>
Expand All @@ -66,16 +69,34 @@ To generate the index just add the following to your `pom.xml`:
</plugins>
</build>
----
****
If you are using gradle, you can apply the following plugin to your `build.gradle`:
[role="secondary asciidoc-tabs-sync-gradle-groovy"]
.Gradle (Groovy DSL)
****
[source,groovy]
[source,groovy,subs=attributes+]
----
plugins {
id 'org.kordamp.gradle.jandex' version '0.11.0'
id 'org.kordamp.gradle.jandex' version '{jandex-gradle-plugin-version}'
}
----
****
[role="secondary asciidoc-tabs-sync-gradle-kotlin"]
.Gradle (Kotlin DSL)
****
[source,kotlin,subs=attributes+]
----
plugins {
id("org.kordamp.gradle.jandex") version '{jandex-gradle-plugin-version}'
}
----
****
If you can't modify the dependency, you can still index it by adding `quarkus.index-dependency` entries to your `application.properties`:
[source,properties]
Expand Down

0 comments on commit 46900f6

Please sign in to comment.