diff --git a/docs/src/main/asciidoc/cdi-reference.adoc b/docs/src/main/asciidoc/cdi-reference.adoc index 126dfb822026f5..f8ed99c057834a 100644 --- a/docs/src/main/asciidoc/cdi-reference.adoc +++ b/docs/src/main/asciidoc/cdi-reference.adoc @@ -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+"] ---- @@ -66,16 +69,34 @@ To generate the index just add the following to your `pom.xml`: ---- +**** -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 '0.13.0' } ---- +**** + +[role="secondary asciidoc-tabs-sync-gradle-kotlin"] +.Gradle (Kotlin DSL) +**** + +[source,kotlin,subs=attributes+] +---- +plugins { + id("org.kordamp.gradle.jandex") version '0.13.0' +} +---- +**** + + If you can't modify the dependency, you can still index it by adding `quarkus.index-dependency` entries to your `application.properties`: [source,properties]