Merge branch '5.1.x'

This commit is contained in:
Stephane Nicoll
2019-02-04 10:34:40 +01:00
2 changed files with 21 additions and 7 deletions

View File

@@ -5952,13 +5952,27 @@ how to do so with Maven:
</dependencies>
----
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 {
compileOnly("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}"
}
----