From 229f354df11d149bfb299bc4248b675d2d07abe1 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 4 Feb 2019 10:22:43 +0100 Subject: [PATCH] Polish "Improve spring-context-indexer documentation" Closes gh-22339 --- src/docs/asciidoc/core/core-beans.adoc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/docs/asciidoc/core/core-beans.adoc b/src/docs/asciidoc/core/core-beans.adoc index cbc70f32fb6..e434098c494 100644 --- a/src/docs/asciidoc/core/core-beans.adoc +++ b/src/docs/asciidoc/core/core-beans.adoc @@ -6295,14 +6295,28 @@ how to do so with Maven: ---- ==== -The following example shows how to do so with Gradle: +With Gradle 4.5 and earlier, the dependency should be declared in the `compileOnly` +configuration, as shown in the following example: ==== [source,groovy,indent=0] [subs="verbatim,quotes,attributes"] ---- dependencies { - annotationProcessor("org.springframework:spring-context-indexer:{spring-version}") + compileOnly "org.springframework:spring-context-indexer:{spring-version}" + } +---- +==== + +With Gradle 4.6 and later, the dependency should be declared in the `annotationProcessor` +configuration, as shown in the following example: + +==== +[source,groovy,indent=0] +[subs="verbatim,quotes,attributes"] +---- + dependencies { + annotationProcessor "org.springframework:spring-context-indexer:{spring-version}" } ---- ====