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 ab65e1c
Showing 1 changed file with 25 additions and 4 deletions.
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 '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]
Expand Down

0 comments on commit ab65e1c

Please sign in to comment.