File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 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:
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- annotationProcessor("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====
You can’t perform that action at this time.
0 commit comments