File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -6295,14 +6295,28 @@ how to do so with Maven:
6295
6295
----
6296
6296
====
6297
6297
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:
6299
6300
6300
6301
====
6301
6302
[source,groovy,indent=0]
6302
6303
[subs="verbatim,quotes,attributes"]
6303
6304
----
6304
6305
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}"
6306
6320
}
6307
6321
----
6308
6322
====
You can’t perform that action at this time.
0 commit comments