Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jandex gradle plugin version in docs #26958

Merged
merged 1 commit into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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