Skip to content

Commit 1241c3b

Browse files
committed
Merge pull request spring-projects#22339 from vpavic
* pr/22339: Polish "Improve spring-context-indexer documentation" Improve spring-context-indexer documentation
2 parents 4560dc2 + 229f354 commit 1241c3b

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

src/docs/asciidoc/core/core-beans.adoc

+16-2
Original file line numberDiff line numberDiff line change
@@ -6295,14 +6295,28 @@ how to do so with Maven:
62956295
----
62966296
====
62976297

6298-
The following example shows how to do so with Gradle:
6298+
With Gradle 4.5 and earlier, the dependency should be declared in the `compileOnly`
6299+
configuration, as shown in the following example:
62996300

63006301
====
63016302
[source,groovy,indent=0]
63026303
[subs="verbatim,quotes,attributes"]
63036304
----
63046305
dependencies {
6305-
compileOnly("org.springframework:spring-context-indexer:{spring-version}")
6306+
compileOnly "org.springframework:spring-context-indexer:{spring-version}"
6307+
}
6308+
----
6309+
====
6310+
6311+
With Gradle 4.6 and later, the dependency should be declared in the `annotationProcessor`
6312+
configuration, as shown in the following example:
6313+
6314+
====
6315+
[source,groovy,indent=0]
6316+
[subs="verbatim,quotes,attributes"]
6317+
----
6318+
dependencies {
6319+
annotationProcessor "org.springframework:spring-context-indexer:{spring-version}"
63066320
}
63076321
----
63086322
====

0 commit comments

Comments
 (0)